depot/third_party/nixpkgs/pkgs/development/python-modules/faker/default.nix
Default email b96e6f4393 Project import generated by Copybara.
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
2021-07-03 21:40:35 -05:00

45 lines
886 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
, text-unidecode
, freezegun
, pytestCheckHook
, ukpostcodeparser
, validators
}:
buildPythonPackage rec {
pname = "Faker";
version = "6.6.3";
src = fetchPypi {
inherit pname version;
sha256 = "c2852cadc99a4ebdbf06934e4c15e30f2307d414ead21d15605759602645f152";
};
propagatedBuildInputs = [
python-dateutil
text-unidecode
];
checkInputs = [
freezegun
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 ];
};
}