diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-08-16 12:42:02 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2020-08-16 12:42:02 -0700 |
commit | 8e9060711ac017c2ff6fcd1e1c2f152c2afa0385 (patch) | |
tree | e3e77bbda8d3749acc3e4eb78c012d197426bcdc /pkgs/development/python-modules/pytest | |
parent | a563ed42702745d01b5c370ea7adc242783fcb3b (diff) |
pytest: fix dependencies, refactor
Diffstat (limited to 'pkgs/development/python-modules/pytest')
-rw-r--r-- | pkgs/development/python-modules/pytest/default.nix | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pytest/default.nix b/pkgs/development/python-modules/pytest/default.nix index 7da1110088a7b..ce742d65ba2d4 100644 --- a/pkgs/development/python-modules/pytest/default.nix +++ b/pkgs/development/python-modules/pytest/default.nix @@ -3,6 +3,7 @@ , attrs , funcsigs , hypothesis +, iniconfig , mock , more-itertools , packaging @@ -14,6 +15,7 @@ , setuptools , setuptools_scm , six +, toml , wcwidth , writeText }: @@ -24,11 +26,6 @@ buildPythonPackage rec { disabled = !isPy3k; - preCheck = '' - # don't test bash builtins - rm testing/test_argcomplete.py - ''; - src = fetchPypi { inherit pname version; sha256 = "85228d75db9f45e06e57ef9bf4429267f81ac7c0d742cc9ed63d09886a9fe6f4"; @@ -36,11 +33,27 @@ buildPythonPackage rec { checkInputs = [ hypothesis pygments ]; nativeBuildInputs = [ setuptools_scm ]; - propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites wcwidth packaging ] - ++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ]; + propagatedBuildInputs = [ + atomicwrites + attrs + iniconfig + more-itertools + packaging + pluggy + py + setuptools + six + toml + wcwidth + ] ++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ]; doCheck = !isPyPy; # https://github.com/pytest-dev/pytest/issues/3460 + preCheck = '' + # don't test bash builtins + rm testing/test_argcomplete.py + ''; + # Ignored file https://github.com/pytest-dev/pytest/pull/5605#issuecomment-522243929 checkPhase = '' runHook preCheck |