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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-mock,
pytestCheckHook,
python-dotenv,
pythonAtLeast,
pythonOlder,
pytimeparse,
pyyaml,
setuptools,
typing-extensions,
tomli-w,
}:
buildPythonPackage rec {
pname = "dataclass-wizard";
version = "0.39.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rnag";
repo = "dataclass-wizard";
tag = "v${version}";
hash = "sha256-X4/qe1nv/NwUvQGvVqbqIgi9Ej43jwJjzXyMaKAtN2A=";
};
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
optional-dependencies = {
dotenv = [ python-dotenv ];
timedelta = [ pytimeparse ];
toml = [ tomli-w ];
yaml = [ pyyaml ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-mock
]
++ lib.concatAttrValues optional-dependencies;
disabledTests =
[ ]
++ lib.optionals (pythonAtLeast "3.11") [
# Any/None internal changes, tests need adjusting upstream
"without_type_hinting"
"default_dict"
"test_frozenset"
"test_set"
"date_times_with_custom_pattern"
"from_dict_handles_identical_cased_json_keys"
];
pythonImportsCheck = [ "dataclass_wizard" ];
meta = {
description = "Wizarding tools for interacting with the Python dataclasses module";
homepage = "https://github.com/rnag/dataclass-wizard";
changelog = "https://github.com/rnag/dataclass-wizard/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ codifryed ];
mainProgram = "wiz";
};
}
|