2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
freezegun,
|
|
|
|
pillow,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
setuptools,
|
|
|
|
text-unidecode,
|
|
|
|
ukpostcodeparser,
|
|
|
|
validators,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "faker";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "25.8.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "Faker";
|
|
|
|
inherit version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-vexfL7BX0kTr724O0xj+pNy98yw6GgEHZvxF9daPxo0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
2024-06-05 15:53:02 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "faker";
|
2021-01-15 22:18:51 +00:00
|
|
|
homepage = "http://faker.rtfd.org";
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
};
|
|
|
|
}
|