2021-01-13 11:32:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-03 12:37:24 +01:00
|
|
|
, python-dateutil
|
2021-01-13 11:32:42 +00:00
|
|
|
, text-unidecode
|
2020-12-01 03:13:16 +00:00
|
|
|
, freezegun
|
|
|
|
, pytestCheckHook
|
|
|
|
, ukpostcodeparser
|
2021-06-29 18:42:42 +01:00
|
|
|
, pillow
|
2020-12-01 03:13:16 +00:00
|
|
|
, validators
|
2019-05-08 00:05:13 +01:00
|
|
|
}:
|
2017-07-04 00:33:04 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-29 19:28:55 +01:00
|
|
|
pname = "faker";
|
2021-06-29 18:42:42 +01:00
|
|
|
version = "8.8.2";
|
2017-07-04 00:33:04 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-06-29 19:28:55 +01:00
|
|
|
pname = "Faker";
|
|
|
|
inherit version;
|
2021-06-29 18:42:42 +01:00
|
|
|
sha256 = "sha256-IlNMOqbS7584QDojTcm3G1y4ePt2XHKZS+Xce06vCGU=";
|
2017-07-04 00:33:04 +01:00
|
|
|
};
|
|
|
|
|
2021-01-13 11:32:42 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-07-03 12:37:24 +01:00
|
|
|
python-dateutil
|
2021-01-13 11:32:42 +00:00
|
|
|
text-unidecode
|
|
|
|
];
|
|
|
|
|
2017-07-04 00:33:04 +01:00
|
|
|
checkInputs = [
|
2019-05-08 00:05:13 +01:00
|
|
|
freezegun
|
2021-06-29 18:42:42 +01:00
|
|
|
pillow
|
2020-12-01 03:13:16 +00:00
|
|
|
pytestCheckHook
|
2019-05-08 00:05:13 +01:00
|
|
|
ukpostcodeparser
|
2019-10-18 00:04:09 +01:00
|
|
|
validators
|
2021-01-13 11:32:42 +00:00
|
|
|
];
|
2017-07-04 00:33:04 +01:00
|
|
|
|
2020-12-01 03:13:16 +00:00
|
|
|
# avoid tests which import random2, an abandoned library
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--ignore=tests/providers/test_ssn.py"
|
|
|
|
];
|
2021-01-13 11:32:42 +00:00
|
|
|
pythonImportsCheck = [ "faker" ];
|
2018-11-29 18:25:48 +00:00
|
|
|
|
2017-07-04 00:33:04 +01:00
|
|
|
meta = with lib; {
|
2021-01-13 11:32:42 +00:00
|
|
|
description = "Python library for generating fake user data";
|
|
|
|
homepage = "http://faker.rtfd.org";
|
|
|
|
license = licenses.mit;
|
2017-07-04 00:33:04 +01:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
};
|
|
|
|
}
|