python.pkgs.pathpy: improve expression

This commit is contained in:
Robert Schütz 2018-12-20 15:42:41 +01:00
parent ede54f9144
commit 256deeb33e

View File

@ -2,8 +2,8 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools_scm , setuptools_scm
, pytestrunner
, pytest , pytest
, pytest-flake8
, glibcLocales , glibcLocales
, packaging , packaging
, isPy27 , isPy27
@ -14,14 +14,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "path.py"; pname = "path.py";
version = "11.5.0"; version = "11.5.0";
name = pname + "-" + version;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "b6687a532a735a2d79a13e92bdb31cb0971abe936ea0fa78bcb47faf4372b3cb"; sha256 = "b6687a532a735a2d79a13e92bdb31cb0971abe936ea0fa78bcb47faf4372b3cb";
}; };
checkInputs = [ pytest pytestrunner glibcLocales packaging ]; checkInputs = [ pytest pytest-flake8 glibcLocales packaging ];
buildInputs = [ setuptools_scm ]; buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ propagatedBuildInputs = [
importlib-metadata importlib-metadata
@ -37,9 +36,7 @@ buildPythonPackage rec {
}; };
checkPhase = '' checkPhase = ''
# Ignore pytest configuration
rm pytest.ini
# ignore performance test which may fail when the system is under load # ignore performance test which may fail when the system is under load
py.test -v -k 'not TestPerformance' test_path.py py.test -v -k 'not TestPerformance'
''; '';
} }