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
1 changed files with 3 additions and 6 deletions

View File

@ -2,8 +2,8 @@
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytestrunner
, pytest
, pytest-flake8
, glibcLocales
, packaging
, isPy27
@ -14,14 +14,13 @@
buildPythonPackage rec {
pname = "path.py";
version = "11.5.0";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
sha256 = "b6687a532a735a2d79a13e92bdb31cb0971abe936ea0fa78bcb47faf4372b3cb";
};
checkInputs = [ pytest pytestrunner glibcLocales packaging ];
checkInputs = [ pytest pytest-flake8 glibcLocales packaging ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
importlib-metadata
@ -37,9 +36,7 @@ buildPythonPackage rec {
};
checkPhase = ''
# Ignore pytest configuration
rm pytest.ini
# 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'
'';
}