f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
52 lines
1,019 B
Nix
52 lines
1,019 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
freezegun,
|
|
pillow,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
setuptools,
|
|
text-unidecode,
|
|
ukpostcodeparser,
|
|
validators,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "faker";
|
|
version = "25.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "Faker";
|
|
inherit version;
|
|
hash = "sha256-vexfL7BX0kTr724O0xj+pNy98yw6GgEHZvxF9daPxo0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
text-unidecode
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pillow
|
|
pytestCheckHook
|
|
ukpostcodeparser
|
|
validators
|
|
];
|
|
|
|
# avoid tests which import random2, an abandoned library
|
|
pytestFlagsArray = [ "--ignore=tests/providers/test_ssn.py" ];
|
|
pythonImportsCheck = [ "faker" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for generating fake user data";
|
|
mainProgram = "faker";
|
|
homepage = "http://faker.rtfd.org";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
};
|
|
}
|