Commit 9fc48e3b authored by Sigmanificient's avatar Sigmanificient
Browse files

python312packages.paramz: drop nose dependency

parent 955f06ba
Loading
Loading
Loading
Loading
+25 −6
Original line number Diff line number Diff line
@@ -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 ];

  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";