depot/third_party/nixpkgs/pkgs/development/python-modules/faker/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

55 lines
1,018 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, freezegun
, pillow
, pytestCheckHook
, python-dateutil
, setuptools
, text-unidecode
, ukpostcodeparser
, validators
}:
buildPythonPackage rec {
pname = "faker";
version = "24.0.0";
pyproject = true;
src = fetchPypi {
pname = "Faker";
inherit version;
hash = "sha256-6m94TEBzDeD3cGfknnjN1ZDvsAvsPTP1d0kiYiBsF/w=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
python-dateutil
text-unidecode
];
nativeCheckInputs = [
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";
mainProgram = "faker";
homepage = "http://faker.rtfd.org";
license = licenses.mit;
maintainers = with maintainers; [ lovek323 ];
};
}