nixpkgs/pkgs/development/python-modules/faker/default.nix
2023-03-03 23:56:39 +01:00

49 lines
913 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, freezegun
, pillow
, pytestCheckHook
, python-dateutil
, text-unidecode
, ukpostcodeparser
, validators
}:
buildPythonPackage rec {
pname = "faker";
version = "17.3.0";
src = fetchPypi {
pname = "Faker";
inherit version;
hash = "sha256-JrKGSlMyCU8sfzlo3uurzmm+Oe1dtNvyK0+guj0aza4=";
};
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";
homepage = "http://faker.rtfd.org";
license = licenses.mit;
maintainers = with maintainers; [ lovek323 ];
};
}