blob: a8e2e565de9a8ca8b106ce4b3cd50ef41ac7696f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
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 ];
};
}
|