3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/faker/default.nix

49 lines
908 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
, text-unidecode
, freezegun
, pytestCheckHook
, ukpostcodeparser
2021-06-29 18:42:42 +01:00
, pillow
, validators
}:
2017-07-04 00:33:04 +01:00
buildPythonPackage rec {
2021-06-29 19:28:55 +01:00
pname = "faker";
2021-06-29 18:42:42 +01:00
version = "8.8.2";
2017-07-04 00:33:04 +01:00
src = fetchPypi {
2021-06-29 19:28:55 +01:00
pname = "Faker";
inherit version;
2021-06-29 18:42:42 +01:00
sha256 = "sha256-IlNMOqbS7584QDojTcm3G1y4ePt2XHKZS+Xce06vCGU=";
2017-07-04 00:33:04 +01:00
};
propagatedBuildInputs = [
python-dateutil
text-unidecode
];
2017-07-04 00:33:04 +01:00
checkInputs = [
freezegun
2021-06-29 18:42:42 +01:00
pillow
pytestCheckHook
ukpostcodeparser
2019-10-18 00:04:09 +01:00
validators
];
2017-07-04 00:33:04 +01:00
# avoid tests which import random2, an abandoned library
pytestFlagsArray = [
"--ignore=tests/providers/test_ssn.py"
];
pythonImportsCheck = [ "faker" ];
2017-07-04 00:33:04 +01:00
meta = with lib; {
description = "Python library for generating fake user data";
homepage = "http://faker.rtfd.org";
license = licenses.mit;
2017-07-04 00:33:04 +01:00
maintainers = with maintainers; [ lovek323 ];
};
}