02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
48 lines
908 B
Nix
48 lines
908 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, freezegun
|
|
, pillow
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, text-unidecode
|
|
, ukpostcodeparser
|
|
, validators
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "faker";
|
|
version = "13.15.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "Faker";
|
|
inherit version;
|
|
hash = "sha256-oSb6ZvVOZaZ/kT3MaYydAj3vcneIJTa94paPyscBv9U=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|