depot/third_party/nixpkgs/pkgs/development/python-modules/treelib/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
792 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
six,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "treelib";
version = "1.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "caesar0301";
repo = "treelib";
rev = "v${version}";
hash = "sha256-FIdJWpkOmUVZb+IkYocu1nn+oSPROrkcHeiw9wZupgM=";
};
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "treelib" ];
meta = with lib; {
description = "Efficient implementation of tree data structure in python 2/3";
homepage = "https://github.com/caesar0301/treelib";
changelog = "https://github.com/caesar0301/treelib/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ mbalatsko ];
};
}