python3Packages.bottleneck: migrate to pyproject (#528833)

This commit is contained in:
Peder Bergebakken Sundt 2026-07-02 12:36:20 +00:00 committed by GitHub
commit 36a55c2bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,30 +2,37 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
versioneer,
numpy,
pytestCheckHook,
python,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "bottleneck";
version = "1.6.0";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-Ao1G7ksCWtmrTXmSQROBb4JfYrF7h8nh0NjOFEpKDjE=";
};
propagatedBuildInputs = [ numpy ];
build-system = [
setuptools
versioneer
];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = "pushd $out";
postCheck = "popd";
disabledTests = [ "test_make_c_files" ];
pythonImportsCheck = [ "bottleneck" ];
meta = {
@ -34,4 +41,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2;
maintainers = [ ];
};
}
})