1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "heapdict";
11 version = "1.0.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 pname = "HeapDict";
16 inherit version;
17 hash = "sha256-hJX1ez4D2ORtXxssxiyogayjkv1cwEjcCqLhptI+zbY=";
18 };
19
20 build-system = [ setuptools ];
21
22 nativeCheckInputs = [ unittestCheckHook ];
23
24 pythonImportsCheck = [ "heapdict" ];
25
26 meta = with lib; {
27 description = "Heap with decrease-key and increase-key operations";
28 homepage = "https://github.com/DanielStutzbach/heapdict";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ teh ];
31 };
32}