depot/third_party/nixpkgs/pkgs/development/python-modules/faker/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

48 lines
913 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, freezegun
, pillow
, pytestCheckHook
, python-dateutil
, text-unidecode
, ukpostcodeparser
, validators
}:
buildPythonPackage rec {
pname = "faker";
version = "15.3.4";
src = fetchPypi {
pname = "Faker";
inherit version;
hash = "sha256-LVRDck9kDOB2WMqMqLvUDSa1iRTmPuxlSXJ4aapn4sw=";
};
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 ];
};
}