python312Packages.nia{aml,arm,class,net,py}: fix Numpy 2 upgrade (#371234)

This commit is contained in:
Fabian Affolter
2025-01-08 10:53:57 +01:00
committed by GitHub
5 changed files with 24 additions and 7 deletions
@@ -28,7 +28,10 @@ buildPythonPackage rec {
hash = "sha256-VMZLEirE01Q9eyQIhV18PepGWmBcxLIwNeuVf7EuSWE=";
};
pythonRelaxDeps = [ "pandas" ];
pythonRelaxDeps = [
"numpy"
"pandas"
];
nativeBuildInputs = [
poetry-core
@@ -28,7 +28,10 @@ buildPythonPackage rec {
hash = "sha256-rYFfLtPJgIdSjRIzDIQeHwoQm9NrI6nM3/BF7wAMr1Y=";
};
pythonRelaxDeps = [ "scikit-learn" ];
pythonRelaxDeps = [
"numpy"
"scikit-learn"
];
nativeBuildInputs = [ poetry-core ];
@@ -26,7 +26,10 @@ buildPythonPackage rec {
hash = "sha256-2VNLXVciWInkZwk9O+U+6oU+FOVQx3InV4UVgny/B6I=";
};
pythonRelaxDeps = [ "pandas" ];
pythonRelaxDeps = [
"numpy"
"pandas"
];
nativeBuildInputs = [
poetry-core
@@ -27,18 +27,22 @@ buildPythonPackage rec {
sha256 = "sha256-FZipl6Z9AfiL6WH0kvUn8bVxt8JLdDVlmTSqnyxe0nY=";
};
nativeBuildInputs = [
build-system = [
poetry-core
toml-adapt
];
propagatedBuildInputs = [
dependencies = [
niapy
numpy
scikit-learn
torch
];
pythonRelaxDeps = [
"numpy"
];
# create niapy and torch dep version consistent
preBuild = ''
toml-adapt -path pyproject.toml -a change -dep niapy -ver X
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "niapy";
version = "2.5.1";
version = "2.5.2";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "NiaOrg";
repo = "NiaPy";
tag = "v${version}";
hash = "sha256-+5tXwubKdhkcv5NjO/DglK+WJfsJ3AzVx/Y/byDBmGo=";
hash = "sha256-8hKT0WxnJijm22w4DkzicvtikaTL/mL3VhQX/WVHL58=";
};
build-system = [ poetry-core ];
@@ -35,6 +35,10 @@ buildPythonPackage rec {
pandas
];
pythonRelaxDeps = [
"numpy"
];
nativeCheckInputs = [
pytest7CheckHook
pytest-xdist