1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "immutabledict"; 11 version = "2.2.2"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "corenting"; 18 repo = "immutabledict"; 19 rev = "v${version}"; 20 hash = "sha256-YqUxkpFl2G/LFLtFWqocXbFvgVhqqiquoWNIIO9c/6o="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 pythonImportsCheck = [ 28 "immutabledict" 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 meta = with lib; { 36 description = "A fork of frozendict, an immutable wrapper around dictionaries"; 37 homepage = "https://github.com/corenting/immutabledict"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ hexa ]; 40 }; 41}