commit 23dcabed8b375119c8c73f0df444e52345ced2fb
parent cd5f1a21489c839f7797b0ba22798360a6be8b41
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 20 Oct 2024 03:18:23 +0400
Add pqdm
Diffstat:
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -110,6 +110,7 @@ lib.makeScope newScope (
python3Packages = pkgs.python310Packages;
};
portolan = callPackage ./development/python-modules/portolan { };
+ pqdm = callPackage ./development/python-modules/pqdm { };
pyarrow_ops = callPackage ./development/python-modules/pyarrow_ops { };
pycouchdb = callPackage ./development/python-modules/pycouchdb { };
pymbtiles = callPackage ./development/python-modules/pymbtiles { };
diff --git a/pkgs/development/python-modules/pqdm/default.nix b/pkgs/development/python-modules/pqdm/default.nix
@@ -0,0 +1,35 @@
+{
+ lib,
+ fetchFromGitHub,
+ python3Packages,
+ bounded-pool-executor,
+}:
+
+python3Packages.buildPythonPackage rec {
+ pname = "pqdm";
+ version = "0.2.0";
+
+ src = fetchFromGitHub {
+ owner = "niedakh";
+ repo = "pqdm";
+ rev = "v${version}";
+ hash = "sha256-qB/0TOxD7XCLsr3bKDIKZvYa8g2N95SzTeDiRgJp3Jk=";
+ };
+
+ dependencies = with python3Packages; [
+ bounded-pool-executor
+ tqdm
+ typing-extensions
+ ];
+
+ nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
+
+ pythonImportsCheck = [ "pqdm" ];
+
+ meta = {
+ description = "Comfortable parallel TQDM using concurrent.futures";
+ homepage = "https://github.com/niedakh/pqdm";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+}