Merge pull request #54501 from eadwu/pythonPackages.faker/1.0.2

pythonPackages.faker: 1.0.1 -> 1.0.2
This commit is contained in:
Jörg Thalheim 2019-01-24 20:02:02 +00:00 committed by GitHub
commit 6b822897a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,11 +8,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
buildPythonPackage rec { buildPythonPackage rec {
pname = "Faker"; pname = "Faker";
version = "1.0.1"; version = "1.0.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "067mdy9p1vbkypr3vazmrb0sga6maqbk542hr7hmzcb5lp3dr8sj"; sha256 = "0v1pjzn9z20ckgv3kji7c8nwcsm7670z4i43ic9skjrdbcqylwfq";
}; };
buildInputs = [ pytestrunner ]; buildInputs = [ pytestrunner ];
@ -30,6 +30,7 @@ buildPythonPackage rec {
] ++ lib.optional (pythonOlder "3.3") ipaddress; ] ++ lib.optional (pythonOlder "3.3") ipaddress;
postPatch = '' postPatch = ''
find tests -type d -name "__pycache__" | xargs rm -r
substituteInPlace setup.py --replace "pytest>=3.8.0,<3.9" "pytest" substituteInPlace setup.py --replace "pytest>=3.8.0,<3.9" "pytest"
''; '';