mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.bottleneck: migrate to pyproject (#528833)
This commit is contained in:
commit
36a55c2bba
1 changed files with 14 additions and 7 deletions
|
|
@ -2,30 +2,37 @@
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
|
setuptools,
|
||||||
|
versioneer,
|
||||||
numpy,
|
numpy,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
python,
|
python,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage (finalAttrs: {
|
||||||
pname = "bottleneck";
|
pname = "bottleneck";
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
|
__structuredAttrs = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit (finalAttrs) pname version;
|
||||||
hash = "sha256-Ao1G7ksCWtmrTXmSQROBb4JfYrF7h8nh0NjOFEpKDjE=";
|
hash = "sha256-Ao1G7ksCWtmrTXmSQROBb4JfYrF7h8nh0NjOFEpKDjE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy ];
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
versioneer
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [ numpy ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
preCheck = "pushd $out";
|
preCheck = "pushd $out";
|
||||||
postCheck = "popd";
|
postCheck = "popd";
|
||||||
|
|
||||||
disabledTests = [ "test_make_c_files" ];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "bottleneck" ];
|
pythonImportsCheck = [ "bottleneck" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
@ -34,4 +41,4 @@ buildPythonPackage rec {
|
||||||
license = lib.licenses.bsd2;
|
license = lib.licenses.bsd2;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue