Skip to content

Commit

Permalink
python312packages.paramz: drop nose dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jul 29, 2024
1 parent 955f06b commit 9fc48e3
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions pkgs/development/python-modules/paramz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -33,20 +34,38 @@ buildPythonPackage rec {
})
];

build-system = [ setuptools ];

propagatedBuildInputs = [
numpy
scipy
six
decorator
];
nativeCheckInputs = [ nose ];

pythonImportsCheck = [ "paramz" ];
nativeCheckInputs = [ pytestCheckHook ];

checkPhase = ''
nosetests -v paramz/tests
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" ];

meta = with lib; {
description = "Parameterization framework for parameterized model creation and handling";
homepage = "https://github.com/sods/paramz";
Expand Down

0 comments on commit 9fc48e3

Please sign in to comment.