Files
nixpkgs/pkgs/development/python-modules/faker/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1007 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
freezegun,
pillow,
pytestCheckHook,
python-dateutil,
setuptools,
typing-extensions,
tzdata,
ukpostcodeparser,
validators,
}:
buildPythonPackage rec {
pname = "faker";
version = "37.5.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-gxXY/01vT1iL1C/+Y6vVmYhseFBz4mpEcH4Q7rpXE9w=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
typing-extensions
tzdata
];
nativeCheckInputs = [
freezegun
pillow
pytestCheckHook
ukpostcodeparser
validators
];
# avoid tests which import random2, an abandoned library
disabledTestPaths = [ "tests/providers/test_ssn.py" ];
pythonImportsCheck = [ "faker" ];
meta = {
description = "Python library for generating fake user data";
mainProgram = "faker";
homepage = "http://faker.rtfd.org";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lovek323 ];
};
}