14 buildPythonPackage rec {
15 pname = "dataclass-wizard";
17 format = "setuptools";
19 src = fetchFromGitHub {
21 repo = "dataclass-wizard";
23 hash = "sha256-Ufi4lZc+UkM6NZr4bS2OibpOmMjyiBEoVKxmrqauW50=";
26 propagatedBuildInputs = [ ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ];
28 optional-dependencies = {
29 timedelta = [ pytimeparse ];
36 ] ++ optional-dependencies.timedelta ++ optional-dependencies.yaml;
40 ++ lib.optionals (pythonAtLeast "3.11") [
41 # Any/None internal changes, tests need adjusting upstream
42 "without_type_hinting"
46 "date_times_with_custom_pattern"
47 "from_dict_handles_identical_cased_json_keys"
50 pythonImportsCheck = [ "dataclass_wizard" ];
53 description = "Set of simple, yet elegant wizarding tools for interacting with the Python dataclasses module";
55 homepage = "https://github.com/rnag/dataclass-wizard";
56 changelog = "https://github.com/rnag/dataclass-wizard/releases/tag/v${version}";
57 license = licenses.asl20;
58 maintainers = with maintainers; [ codifryed ];