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, 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 = [ ];
}; };
} })