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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pydantic,
typing-extensions,
cron-converter,
semver,
pendulum,
phonenumbers,
pycountry,
pymongo,
python-ulid,
pytz,
tzdata,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pydantic-extra-types";
version = "2.10.6";
pyproject = true;
src = fetchFromGitHub {
owner = "pydantic";
repo = "pydantic-extra-types";
tag = "v${version}";
hash = "sha256-g2a7tfldt39RCZxd9ta/JTPYnfZTTsLE6kA2fuo3fFg=";
};
build-system = [ hatchling ];
dependencies = [
pydantic
typing-extensions
];
optional-dependencies = {
all = [
cron-converter
pendulum
phonenumbers
pycountry
pymongo
python-ulid
pytz
semver
tzdata
];
cron = [ cron-converter ];
phonenumbers = [ phonenumbers ];
pycountry = [ pycountry ];
semver = [ semver ];
python_ulid = [ python-ulid ];
pendulum = [ pendulum ];
};
pytestFlags = [
"-Wignore::DeprecationWarning"
];
disabledTests = [
# https://github.com/pydantic/pydantic-extra-types/issues/346
"test_json_schema"
];
pythonImportsCheck = [ "pydantic_extra_types" ];
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all;
# PermissionError accessing '/etc/localtime'
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_pendulum_dt.py" ];
meta = {
changelog = "https://github.com/pydantic/pydantic-extra-types/blob/${src.tag}/HISTORY.md";
description = "Extra Pydantic types";
homepage = "https://github.com/pydantic/pydantic-extra-types";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|