blob: 539873a1a4be2f53f93dd2ad99df6f1784b8fbef (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pydantic
, phonenumbers
, pycountry
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pydantic-extra-types";
version = "2.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pydantic";
repo = "pydantic-extra-types";
rev = "v${version}";
hash = "sha256-QPBOHIssTsWQlEg2WRpLRKrB6zmae43EExnPn5P4oAY=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
pydantic
];
passthru.optional-dependencies = {
all = [
phonenumbers
pycountry
];
};
pythonImportsCheck = [ "pydantic_extra_types" ];
nativeCheckInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.all;
pytestFlagsArray = [
"-W" "ignore::DeprecationWarning"
];
meta = with lib; {
description = "Extra Pydantic types";
homepage = "https://github.com/pydantic/pydantic-extra-types";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|