Loading pkgs/development/python-modules/changefinder/default.nix +10 −6 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ , buildPythonPackage , fetchFromGitHub , setuptools , nose , pytestCheckHook , numpy , scipy , statsmodels Loading @@ -20,17 +20,21 @@ buildPythonPackage { hash = "sha256-1If0gIsMU8673fKSSHVMvDgR1UnYgM/4HiyvZJ9T6VM="; }; nativeBuildInputs = [ setuptools ]; patches = [ ./fix_test_invocation.patch ]; build-system = [ setuptools ]; propagatedBuildInputs = [ nose # not actually required during runtime, but specified as required in `setup.py` pythonRemoveDeps = [ "nose" ]; dependencies = [ numpy scipy statsmodels ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "test/test.py" ]; pythonImportsCheck = [ "changefinder" ]; meta = with lib; { Loading pkgs/development/python-modules/changefinder/fix_test_invocation.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/test/test.py b/test/test.py index 85a9f4e..a5f44fd 100644 --- a/test/test.py +++ b/test/test.py @@ -4,7 +4,7 @@ import numpy as np class TestChangeFinder(): - def setup(self): + def setup_method(self): self._term = 30 self._smooth = 7 self._order = 1 Loading
pkgs/development/python-modules/changefinder/default.nix +10 −6 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ , buildPythonPackage , fetchFromGitHub , setuptools , nose , pytestCheckHook , numpy , scipy , statsmodels Loading @@ -20,17 +20,21 @@ buildPythonPackage { hash = "sha256-1If0gIsMU8673fKSSHVMvDgR1UnYgM/4HiyvZJ9T6VM="; }; nativeBuildInputs = [ setuptools ]; patches = [ ./fix_test_invocation.patch ]; build-system = [ setuptools ]; propagatedBuildInputs = [ nose # not actually required during runtime, but specified as required in `setup.py` pythonRemoveDeps = [ "nose" ]; dependencies = [ numpy scipy statsmodels ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "test/test.py" ]; pythonImportsCheck = [ "changefinder" ]; meta = with lib; { Loading
pkgs/development/python-modules/changefinder/fix_test_invocation.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/test/test.py b/test/test.py index 85a9f4e..a5f44fd 100644 --- a/test/test.py +++ b/test/test.py @@ -4,7 +4,7 @@ import numpy as np class TestChangeFinder(): - def setup(self): + def setup_method(self): self._term = 30 self._smooth = 7 self._order = 1