1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "immutabledict"; 12 version = "4.2.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "corenting"; 19 repo = "immutabledict"; 20 tag = "v${version}"; 21 hash = "sha256-v2oOzvAa8KONZDQuxouai2B9d1RY4kZG/px2wl0KAyM="; 22 }; 23 24 nativeBuildInputs = [ poetry-core ]; 25 26 pythonImportsCheck = [ "immutabledict" ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 disabledTests = [ 31 # fails if builder load is highly variable 32 "test_performance" 33 ]; 34 35 meta = with lib; { 36 description = "Fork of frozendict, an immutable wrapper around dictionaries"; 37 homepage = "https://github.com/corenting/immutabledict"; 38 changelog = "https://github.com/corenting/immutabledict/blob/v${version}/CHANGELOG.md"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ hexa ]; 41 }; 42}