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.0";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "corenting";
19 repo = "immutabledict";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-NpNS8HAacgXm3rFtyd5uFgSURNbDf+YVS1aFx51kwEA=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 pythonImportsCheck = [ "immutabledict" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = with lib; {
31 description = "Fork of frozendict, an immutable wrapper around dictionaries";
32 homepage = "https://github.com/corenting/immutabledict";
33 changelog = "https://github.com/corenting/immutabledict/blob/v${version}/CHANGELOG.md";
34 license = licenses.mit;
35 maintainers = with maintainers; [ hexa ];
36 };
37}