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