python3Packages.faker: fix tests, remove random2
This commit is contained in:
parent
9a885384da
commit
df11a2851c
@ -1,15 +1,15 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
|
||||||
# Build inputs
|
# Build inputs
|
||||||
dateutil, six, text-unidecode, ipaddress ? null
|
dateutil, six, text-unidecode, ipaddress ? null
|
||||||
# Test inputs
|
# Test inputs
|
||||||
, email_validator
|
, email_validator
|
||||||
, freezegun
|
, freezegun
|
||||||
, mock
|
, mock
|
||||||
, more-itertools
|
, more-itertools
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, ukpostcodeparser
|
, ukpostcodeparser
|
||||||
, validators
|
, validators
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert pythonOlder "3.3" -> ipaddress != null;
|
assert pythonOlder "3.3" -> ipaddress != null;
|
||||||
@ -27,13 +27,18 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [
|
checkInputs = [
|
||||||
email_validator
|
email_validator
|
||||||
freezegun
|
freezegun
|
||||||
pytest
|
pytestCheckHook
|
||||||
ukpostcodeparser
|
ukpostcodeparser
|
||||||
validators
|
validators
|
||||||
]
|
]
|
||||||
++ lib.optionals (pythonOlder "3.3") [ mock ]
|
++ lib.optionals (pythonOlder "3.3") [ mock ]
|
||||||
++ lib.optionals (pythonOlder "3.0") [ more-itertools ];
|
++ lib.optionals (pythonOlder "3.0") [ more-itertools ];
|
||||||
|
|
||||||
|
# avoid tests which import random2, an abandoned library
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"--ignore=tests/providers/test_ssn.py"
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
dateutil
|
dateutil
|
||||||
six
|
six
|
||||||
|
Loading…
x
Reference in New Issue
Block a user