macs2: 2.2.8 -> 2.2.9.1

This commit is contained in:
Theodore Ni 2023-08-11 14:45:45 -07:00
parent 0a088cacf8
commit 851d2f6b95
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,31 +1,40 @@
{ lib, python3, fetchPypi }: { lib, python3, fetchpatch, fetchPypi }:
python3.pkgs.buildPythonPackage rec { python3.pkgs.buildPythonPackage rec {
pname = "macs2"; pname = "macs2";
version = "2.2.8"; version = "2.2.9.1";
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
pname = lib.toUpper pname; pname = lib.toUpper pname;
inherit version; inherit version;
hash = "sha256-KgpDasidj4yUoeQQaQA3dg5eN5Ka1xnFRpbnTvhKmOA="; hash = "sha256-jVa8N/uCP8Y4fXgTjOloQFxUoKjNl3ZoJwX9CYMlLRY=";
}; };
postPatch = '' patches = [
# prevent setup.py from installing numpy # https://github.com/macs3-project/MACS/pull/590
substituteInPlace setup.py \ (fetchpatch {
--replace "subprocess.call([sys.executable, \"-m\", 'pip', 'install', f'numpy{numpy_requires}'],cwd=cwd)" "0" name = "remove-pip-build-dependency.patch";
''; url = "https://github.com/macs3-project/MACS/commit/cf95a930daccf9f16e5b9a9224c5a2670cf67939.patch";
hash = "sha256-WB3Ubqk5fKtZt97QYo/sZDU/yya9MUo1NL4VsKXR+Yo=";
})
];
nativeBuildInputs = with python3.pkgs; [ nativeBuildInputs = with python3.pkgs; [
cython cython
numpy
setuptools setuptools
wheel
]; ];
propagatedBuildInputs = with python3.pkgs; [ numpy ]; propagatedBuildInputs = with python3.pkgs; [
numpy
];
nativeCheckInputs = [ __darwinAllowLocalNetworking = true;
python3.pkgs.unittestCheckHook
nativeCheckInputs = with python3.pkgs; [
unittestCheckHook
]; ];
unittestFlagsArray = [ unittestFlagsArray = [