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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
907 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, freezegun
2021-10-12 21:35:33 +00:00
, pillow
, pytestCheckHook
2021-10-12 21:35:33 +00:00
, python-dateutil
, text-unidecode
, ukpostcodeparser
, validators
}:
2017-07-03 23:33:04 +00:00
buildPythonPackage rec {
2021-06-29 18:28:55 +00:00
pname = "faker";
version = "13.3.0";
2017-07-03 23:33:04 +00:00
src = fetchPypi {
2021-06-29 18:28:55 +00:00
pname = "Faker";
inherit version;
hash = "sha256-YYsUDHdHV4bb46VAmtU1Ict2dGq3pcd7mcZj8+8bG8I=";
2017-07-03 23:33:04 +00:00
};
propagatedBuildInputs = [
python-dateutil
text-unidecode
];
2017-07-03 23:33:04 +00:00
checkInputs = [
freezegun
2021-06-29 17:42:42 +00:00
pillow
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 ];
};
}