depot/third_party/nixpkgs/pkgs/development/python-modules/faker/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1,020 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
freezegun,
pillow,
pytestCheckHook,
python-dateutil,
setuptools,
text-unidecode,
ukpostcodeparser,
validators,
}:
buildPythonPackage rec {
pname = "faker";
version = "24.11.0";
pyproject = true;
src = fetchPypi {
pname = "Faker";
inherit version;
hash = "sha256-NLlHWBwrztNAw5s1+J2/rE81aTLP/4/ok73oVJA/Dm4=";
};
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 ];
};
}