mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
macs2: 2.2.8 -> 2.2.9.1
This commit is contained in:
parent
0a088cacf8
commit
851d2f6b95
@ -1,31 +1,40 @@
|
||||
{ lib, python3, fetchPypi }:
|
||||
{ lib, python3, fetchpatch, fetchPypi }:
|
||||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
pname = "macs2";
|
||||
version = "2.2.8";
|
||||
version = "2.2.9.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = lib.toUpper pname;
|
||||
inherit version;
|
||||
hash = "sha256-KgpDasidj4yUoeQQaQA3dg5eN5Ka1xnFRpbnTvhKmOA=";
|
||||
hash = "sha256-jVa8N/uCP8Y4fXgTjOloQFxUoKjNl3ZoJwX9CYMlLRY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# prevent setup.py from installing numpy
|
||||
substituteInPlace setup.py \
|
||||
--replace "subprocess.call([sys.executable, \"-m\", 'pip', 'install', f'numpy{numpy_requires}'],cwd=cwd)" "0"
|
||||
'';
|
||||
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=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
cython
|
||||
numpy
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ numpy ];
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
numpy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
python3.pkgs.unittestCheckHook
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
unittestFlagsArray = [
|
||||
|
Loading…
Reference in New Issue
Block a user