Merge pull request #330865 from Sigmanificient/paramz

python312packages.paramz: drop nose dependency
This commit is contained in:
Peder Bergebakken Sundt 2024-08-18 23:02:11 +02:00 committed by GitHub
commit 60213024fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,17 +3,18 @@
buildPythonPackage,
fetchpatch,
fetchPypi,
setuptools,
numpy,
scipy,
six,
decorator,
nose,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "paramz";
version = "0.9.5";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
@ -33,20 +34,38 @@ buildPythonPackage rec {
})
];
build-system = [ setuptools ];
propagatedBuildInputs = [
numpy
scipy
six
decorator
];
nativeCheckInputs = [ nose ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
substituteInPlace paramz/tests/parameterized_tests.py \
--replace-fail "assertRaisesRegexp" "assertRaisesRegex"
'';
pytestFlagsArray = [
"paramz/tests/array_core_tests.py"
"paramz/tests/cacher_tests.py"
"paramz/tests/examples_tests.py"
"paramz/tests/index_operations_tests.py"
"paramz/tests/init_tests.py"
"paramz/tests/lists_and_dicts_tests.py"
"paramz/tests/model_tests.py"
"paramz/tests/observable_tests.py"
"paramz/tests/parameterized_tests.py"
"paramz/tests/pickle_tests.py"
"paramz/tests/verbose_optimize_tests.py"
];
pythonImportsCheck = [ "paramz" ];
checkPhase = ''
nosetests -v paramz/tests
'';
meta = with lib; {
description = "Parameterization framework for parameterized model creation and handling";
homepage = "https://github.com/sods/paramz";