Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
971 B · 41 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, pytestCheckHook,}:
buildPythonPackage rec { pname = "dacite"; version = "1.9.2"; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "konradhalas"; repo = "dacite"; tag = "v${version}"; hash = "sha256-mAPqWvBpkTbtzHpwtCSDXMNkoc8/hbRH3OIEeK2yStU="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "--benchmark-autosave --benchmark-json=benchmark.json" "" '';
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dacite" ];
disabledTestPaths = [ "tests/performance" ];
meta = with lib; { 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 = licenses.mit; maintainers = with maintainers; [ fab ]; };}