pytest: fix dependencies, refactor
This commit is contained in:
parent
a563ed4270
commit
8e9060711a
@ -3,6 +3,7 @@
|
|||||||
, attrs
|
, attrs
|
||||||
, funcsigs
|
, funcsigs
|
||||||
, hypothesis
|
, hypothesis
|
||||||
|
, iniconfig
|
||||||
, mock
|
, mock
|
||||||
, more-itertools
|
, more-itertools
|
||||||
, packaging
|
, packaging
|
||||||
@ -14,6 +15,7 @@
|
|||||||
, setuptools
|
, setuptools
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, six
|
, six
|
||||||
|
, toml
|
||||||
, wcwidth
|
, wcwidth
|
||||||
, writeText
|
, writeText
|
||||||
}:
|
}:
|
||||||
@ -24,11 +26,6 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
# don't test bash builtins
|
|
||||||
rm testing/test_argcomplete.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "85228d75db9f45e06e57ef9bf4429267f81ac7c0d742cc9ed63d09886a9fe6f4";
|
sha256 = "85228d75db9f45e06e57ef9bf4429267f81ac7c0d742cc9ed63d09886a9fe6f4";
|
||||||
@ -36,11 +33,27 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [ hypothesis pygments ];
|
checkInputs = [ hypothesis pygments ];
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites wcwidth packaging ]
|
propagatedBuildInputs = [
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ];
|
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
|
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
|
# Ignored file https://github.com/pytest-dev/pytest/pull/5605#issuecomment-522243929
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
|
Loading…
x
Reference in New Issue
Block a user