depot/third_party/nixpkgs/pkgs/development/python-modules/faker/default.nix
Default email 5b567aa208 Project import generated by Copybara.
GitOrigin-RevId: 16105403bdd843540cbef9c63fc0f16c1c6eaa70
2021-07-21 09:28:18 +02:00

48 lines
908 B
Nix

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