nixpkgs/pkgs/development/python-modules/faker/default.nix

46 lines
860 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, dateutil
, text-unidecode
, freezegun
, pytestCheckHook
, ukpostcodeparser
, validators
}:
2017-07-03 23:33:04 +00:00
buildPythonPackage rec {
pname = "Faker";
2021-01-13 08:26:03 +00:00
version = "5.5.1";
2017-07-03 23:33:04 +00:00
src = fetchPypi {
inherit pname version;
2021-01-13 08:26:03 +00:00
sha256 = "1bskhmiir1ajipj7j535j2mxgnp6s3mxbvlag4aryj9zbhgg1c19";
2017-07-03 23:33:04 +00:00
};
propagatedBuildInputs = [
dateutil
text-unidecode
];
2017-07-03 23:33:04 +00:00
checkInputs = [
freezegun
pytestCheckHook
ukpostcodeparser
2019-10-17 23:04:09 +00:00
validators
];
2017-07-03 23:33:04 +00:00
# avoid tests which import random2, an abandoned library
pytestFlagsArray = [
"--ignore=tests/providers/test_ssn.py"
];
pythonImportsCheck = [ "faker" ];
2017-07-03 23:33:04 +00:00
meta = with lib; {
description = "Python library for generating fake user data";
homepage = "http://faker.rtfd.org";
license = licenses.mit;
2017-07-03 23:33:04 +00:00
maintainers = with maintainers; [ lovek323 ];
};
}