1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 six,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "treelib";
12 version = "1.8.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "caesar0301";
17 repo = "treelib";
18 tag = "v${version}";
19 hash = "sha256-jvaZVy+FUcCcIdvWK6zFL8IBVH+hMiPMmv5shFXLo0k=";
20 };
21
22 build-system = [ poetry-core ];
23
24 dependencies = [ six ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "treelib" ];
29
30 meta = with lib; {
31 description = "Efficient implementation of tree data structure in python 2/3";
32 homepage = "https://github.com/caesar0301/treelib";
33 changelog = "https://github.com/caesar0301/treelib/releases/tag/${src.tag}";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ mbalatsko ];
36 };
37}