1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 six,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "treelib";
11 version = "1.7.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "caesar0301";
16 repo = "treelib";
17 rev = "v${version}";
18 hash = "sha256-FIdJWpkOmUVZb+IkYocu1nn+oSPROrkcHeiw9wZupgM=";
19 };
20
21 propagatedBuildInputs = [ six ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "treelib" ];
26
27 meta = with lib; {
28 description = "An efficient implementation of tree data structure in python 2/3";
29 homepage = "https://github.com/caesar0301/treelib";
30 changelog = "https://github.com/caesar0301/treelib/releases/tag/${src.rev}";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ mbalatsko ];
33 };
34}