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";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "15.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "Faker";
|
|
|
|
inherit version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-LVRDck9kDOB2WMqMqLvUDSa1iRTmPuxlSXJ4aapn4sw=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|