Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 46 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, pythonAtLeast, setuptools,}:
buildPythonPackage rec { pname = "dacite"; version = "1.9.2"; pyproject = true;
src = fetchFromGitHub { owner = "konradhalas"; repo = "dacite"; tag = "v${version}"; hash = "sha256-mAPqWvBpkTbtzHpwtCSDXMNkoc8/hbRH3OIEeK2yStU="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "--benchmark-autosave --benchmark-json=benchmark.json" "" '' + lib.optionalString (pythonAtLeast "3.14") '' substituteInPlace tests/core/test_union.py \ --replace-fail "typing.Union[int, str]" "int | str" '';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dacite" ];
disabledTestPaths = [ "tests/performance" ];
meta = { description = "Python helper to create data classes from dictionaries"; homepage = "https://github.com/konradhalas/dacite"; changelog = "https://github.com/konradhalas/dacite/blob/v${version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}