2023-08-22 20:05:09 +00:00
|
|
|
{ lib, python3, fetchpatch, fetchPypi }:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
|
|
pname = "macs2";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.2.9.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = lib.toUpper pname;
|
|
|
|
inherit version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-jVa8N/uCP8Y4fXgTjOloQFxUoKjNl3ZoJwX9CYMlLRY=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/macs3-project/MACS/pull/590
|
|
|
|
(fetchpatch {
|
|
|
|
name = "remove-pip-build-dependency.patch";
|
|
|
|
url = "https://github.com/macs3-project/MACS/commit/cf95a930daccf9f16e5b9a9224c5a2670cf67939.patch";
|
|
|
|
hash = "sha256-WB3Ubqk5fKtZt97QYo/sZDU/yya9MUo1NL4VsKXR+Yo=";
|
|
|
|
})
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
cython
|
2023-08-22 20:05:09 +00:00
|
|
|
numpy
|
2023-07-15 17:15:38 +00:00
|
|
|
setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
numpy
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
unittestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
unittestFlagsArray = [
|
|
|
|
"-s"
|
|
|
|
"test"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "MACS2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Model-based Analysis for ChIP-Seq";
|
|
|
|
homepage = "https://github.com/macs3-project/MACS/";
|
|
|
|
changelog = "https://github.com/macs3-project/MACS/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ gschwartz ];
|
|
|
|
};
|
|
|
|
}
|