diff options
| author | natsukium <tomoya.otabi@gmail.com> | 2023-05-30 00:29:42 +0900 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-05-29 19:05:06 +0000 |
| commit | 51e8d0d14905b30030e3c5149b323525d3420776 (patch) | |
| tree | a9da54bcb0a4f6a2df03b225d37a28802b713b13 | |
| parent | python3Packages.filterpy: 1.4.5 -> unstable-2022-08-23 (diff) | |
| download | nixpkgs-origin/backport-234812-to-release-23.05.tar.gz | |
python3Packages.filterpy: fix formattingorigin/backport-234812-to-release-23.05
- add format
- use pytestCheckHook
- enable all tests
(cherry picked from commit 46a649030ab875e645dcd3d6935a3bc225574cd9)
| -rw-r--r-- | pkgs/development/python-modules/filterpy/default.nix | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/filterpy/default.nix b/pkgs/development/python-modules/filterpy/default.nix index 04304913eb5e..86ea56f33347 100644 --- a/pkgs/development/python-modules/filterpy/default.nix +++ b/pkgs/development/python-modules/filterpy/default.nix @@ -4,13 +4,15 @@ , numpy , scipy , matplotlib -, pytest +, pytestCheckHook , isPy3k }: buildPythonPackage { - version = "unstable-2022-08-23"; pname = "filterpy"; + version = "unstable-2022-08-23"; + format = "setuptools"; + disabled = !isPy3k; src = fetchFromGitHub { @@ -20,14 +22,15 @@ buildPythonPackage { hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag="; }; - nativeCheckInputs = [ pytest ]; - propagatedBuildInputs = [ numpy scipy matplotlib ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - # single test fails (even on master branch of repository) - # project does not use CI - checkPhase = '' - pytest --ignore=filterpy/common/tests/test_discretization.py - ''; + propagatedBuildInputs = [ + numpy + scipy + matplotlib + ]; meta = with lib; { homepage = "https://github.com/rlabbe/filterpy"; |
