Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 68 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, buildPythonPackage, fetchFromGitHub, pytest-mock, pytestCheckHook, python-dotenv, pythonAtLeast, pythonOlder, pytimeparse, pyyaml, setuptools, typing-extensions, tomli-w,}:
buildPythonPackage rec { pname = "dataclass-wizard"; version = "0.35.0"; pyproject = true;
src = fetchFromGitHub { owner = "rnag"; repo = "dataclass-wizard"; tag = "v${version}"; hash = "sha256-Ed9/y2blOGYfNcmCCAe4TPWssKWUS0gxvRXKMf+cJh0="; };
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
optional-dependencies = { dotenv = [ python-dotenv ]; timedelta = [ pytimeparse ]; toml = [ tomli-w ]; yaml = [ pyyaml ]; };
nativeCheckInputs = [ pytestCheckHook pytest-mock ] ++ lib.flatten (builtins.attrValues 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 = with lib; { 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 = licenses.asl20; maintainers = with maintainers; [ codifryed ]; mainProgram = "wiz"; };}