diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-01-15 21:58:51 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-23 01:09:32 +0100 |
commit | f65fa51637abf829150ba982144ad0f8a0315034 (patch) | |
tree | 13ce0d04951f7ff345b158d0367c15a91bd20b97 /pkgs/development/python-modules/pytest-arraydiff | |
parent | 680898f089ec59b68d09f36fb672ccd03e6bc608 (diff) | |
download | nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.tar nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.tar.gz nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.tar.bz2 nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.tar.lz nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.tar.xz nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.tar.zst nixpkgs-f65fa51637abf829150ba982144ad0f8a0315034.zip |
python3Packages.pytest-arraydiff: add pythonImportsCheck
Diffstat (limited to 'pkgs/development/python-modules/pytest-arraydiff')
-rw-r--r-- | pkgs/development/python-modules/pytest-arraydiff/default.nix | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pytest-arraydiff/default.nix b/pkgs/development/python-modules/pytest-arraydiff/default.nix index cc1b1ab56c1..95e22510d8a 100644 --- a/pkgs/development/python-modules/pytest-arraydiff/default.nix +++ b/pkgs/development/python-modules/pytest-arraydiff/default.nix @@ -2,35 +2,48 @@ , buildPythonPackage , fetchPypi , numpy -, six , pytest +, pythonOlder +, setuptools-scm }: buildPythonPackage rec { pname = "pytest-arraydiff"; version = "0.5.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; sha256 = "714149beffd0dfa085477c65791c1139b619602b049536353ce1a91397fb3bd2"; }; - buildInputs = [ pytest ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + buildInputs = [ + pytest + ]; propagatedBuildInputs = [ numpy - six ]; - # The tests requires astropy, which itself requires - # pytest-arraydiff. This causes an infinite recursion if the tests - # are enabled. + # The tests requires astropy, which itself requires pytest-arraydiff doCheck = false; + pythonImportsCheck = [ + "pytest_arraydiff" + ]; + meta = with lib; { description = "Pytest plugin to help with comparing array output from tests"; homepage = "https://github.com/astrofrog/pytest-arraydiff"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } |