Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
python311,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
}:
|
|
|
|
# pin python311 because macs2 does not support python 3.12
|
|
# https://github.com/macs3-project/MACS/issues/598#issuecomment-1812622572
|
|
python311.pkgs.buildPythonPackage rec {
|
|
pname = "macs2";
|
|
version = "2.2.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = lib.toUpper pname;
|
|
inherit version;
|
|
hash = "sha256-jVa8N/uCP8Y4fXgTjOloQFxUoKjNl3ZoJwX9CYMlLRY=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
build-system = with python311.pkgs; [
|
|
cython_0
|
|
numpy
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python311.pkgs; [
|
|
numpy
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = with python311.pkgs; [
|
|
unittestCheckHook
|
|
];
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"test"
|
|
];
|
|
|
|
pythonImportsCheck = [ "MACS2" ];
|
|
|
|
meta = {
|
|
description = "Model-based Analysis for ChIP-Seq";
|
|
mainProgram = "macs2";
|
|
homepage = "https://github.com/macs3-project/MACS/";
|
|
changelog = "https://github.com/macs3-project/MACS/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ gschwartz ];
|
|
};
|
|
}
|