2021-01-13 11:32:42 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2020-12-01 03:13:16 +00:00
|
|
|
freezegun,
|
2021-10-12 21:35:33 +00:00
|
|
|
pillow,
|
2020-12-01 03:13:16 +00:00
|
|
|
pytestCheckHook,
|
2021-10-12 21:35:33 +00:00
|
|
|
python-dateutil,
|
2023-12-02 23:00:37 +00:00
|
|
|
setuptools,
|
2021-10-12 21:35:33 +00:00
|
|
|
text-unidecode,
|
2020-12-01 03:13:16 +00:00
|
|
|
ukpostcodeparser,
|
|
|
|
validators,
|
2019-05-07 23:05:13 +00:00
|
|
|
}:
|
2017-07-03 23:33:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-29 18:28:55 +00:00
|
|
|
pname = "faker";
|
2024-09-29 15:04:29 +00:00
|
|
|
version = "25.9.2";
|
2023-12-02 23:00:37 +00:00
|
|
|
pyproject = true;
|
2017-07-03 23:33:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-06-29 18:28:55 +00:00
|
|
|
pname = "Faker";
|
|
|
|
inherit version;
|
2024-09-29 15:04:29 +00:00
|
|
|
hash = "sha256-ypSENgCkCJqROUAj/vAUu0H+5Qn4xL7vFTABg3PncPs=";
|
2017-07-03 23:33:04 +00:00
|
|
|
};
|
|
|
|
|
2023-12-02 23:00:37 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2021-01-13 11:32:42 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-07-03 11:37:24 +00:00
|
|
|
python-dateutil
|
2021-01-13 11:32:42 +00:00
|
|
|
text-unidecode
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2019-05-07 23:05:13 +00:00
|
|
|
freezegun
|
2021-06-29 17:42:42 +00:00
|
|
|
pillow
|
2020-12-01 03:13:16 +00:00
|
|
|
pytestCheckHook
|
2019-05-07 23:05:13 +00:00
|
|
|
ukpostcodeparser
|
2019-10-17 23:04:09 +00:00
|
|
|
validators
|
2021-01-13 11:32:42 +00:00
|
|
|
];
|
2017-07-03 23:33:04 +00: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-03 23:33:04 +00:00
|
|
|
meta = with lib; {
|
2021-01-13 11:32:42 +00:00
|
|
|
description = "Python library for generating fake user data";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "faker";
|
2021-01-13 11:32:42 +00:00
|
|
|
homepage = "http://faker.rtfd.org";
|
|
|
|
license = licenses.mit;
|
2017-07-03 23:33:04 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
};
|
|
|
|
}
|