2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-07 07:45:13 +00:00
|
|
|
, freezegun
|
2021-12-06 16:07:01 +00:00
|
|
|
, pillow
|
2020-12-07 07:45:13 +00:00
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, python-dateutil
|
|
|
|
, text-unidecode
|
2020-12-07 07:45:13 +00:00
|
|
|
, ukpostcodeparser
|
|
|
|
, validators
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "faker";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "13.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "Faker";
|
|
|
|
inherit version;
|
2022-04-15 01:41:22 +00:00
|
|
|
hash = "sha256-YYsUDHdHV4bb46VAmtU1Ict2dGq3pcd7mcZj8+8bG8I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2021-01-15 22:18:51 +00:00
|
|
|
text-unidecode
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
2021-07-21 07:28:18 +00:00
|
|
|
pillow
|
2020-12-07 07:45:13 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
ukpostcodeparser
|
|
|
|
validators
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
# avoid tests which import random2, an abandoned library
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--ignore=tests/providers/test_ssn.py"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
pythonImportsCheck = [ "faker" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Python library for generating fake user data";
|
|
|
|
homepage = "http://faker.rtfd.org";
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
};
|
|
|
|
}
|