nixpkgs/pkgs/development/python-modules/faker/default.nix
2024-10-13 11:03:19 +02:00

53 lines
1019 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
freezegun,
pillow,
pytestCheckHook,
python-dateutil,
setuptools,
text-unidecode,
ukpostcodeparser,
validators,
}:
buildPythonPackage rec {
pname = "faker";
version = "25.9.2";
pyproject = true;
src = fetchPypi {
pname = "Faker";
inherit version;
hash = "sha256-ypSENgCkCJqROUAj/vAUu0H+5Qn4xL7vFTABg3PncPs=";
};
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 ];
};
}