mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
53 lines
1019 B
Nix
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 ];
|
|
};
|
|
}
|