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