about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMaksym Balatsko <maksym.balatsko-ext@arista.com>2023-09-29 06:05:51 -0700
committerYt <happysalada@tuta.io>2023-10-01 16:14:57 +0000
commit187496d97f234dd1e91de1366788f5373172b62d (patch)
tree357cf4a7fd14a3911ad44e40d49fa0fce832a0cf /pkgs
parent12919612b13844ed9bed3fcf0c1d80d7a7f19b01 (diff)
python3Packages.treelib: init at 1.7.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/treelib/default.nix35
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/treelib/default.nix b/pkgs/development/python-modules/treelib/default.nix
new file mode 100644
index 0000000000000..cf32b37a23195
--- /dev/null
+++ b/pkgs/development/python-modules/treelib/default.nix
@@ -0,0 +1,35 @@
+{ 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 = "An 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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 087f513fc49a3..69da20f186925 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -13259,6 +13259,8 @@ self: super: with self; {
 
   tree-sitter = callPackage ../development/python-modules/tree-sitter { };
 
+  treelib = callPackage ../development/python-modules/treelib { };
+
   treelog = callPackage ../development/python-modules/treelog { };
 
   treeo = callPackage ../development/python-modules/treeo { };