mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 21:57:59 +00:00
Merge pull request #330865 from Sigmanificient/paramz
python312packages.paramz: drop nose dependency
This commit is contained in:
commit
60213024fa
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user