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.

53 lines
1019 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,
setuptools,
2021-10-12 21:35:33 +00:00
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 = "25.9.2";
pyproject = true;
2017-07-03 23:33:04 +00:00
src = fetchPypi {
2021-06-29 18:28:55 +00:00
pname = "Faker";
inherit version;
hash = "sha256-ypSENgCkCJqROUAj/vAUu0H+5Qn4xL7vFTABg3PncPs=";
2017-07-03 23:33:04 +00:00
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
python-dateutil
text-unidecode
];
nativeCheckInputs = [
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";
mainProgram = "faker";
homepage = "http://faker.rtfd.org";
license = licenses.mit;
2017-07-03 23:33:04 +00:00
maintainers = with maintainers; [ lovek323 ];
};
}