about summary refs log tree commit diff
path: root/pkgs/applications/networking/pyload-ng
diff options
context:
space:
mode:
authorruby0b <106119328+ruby0b@users.noreply.github.com>2023-07-09 13:05:40 +0200
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-07-20 09:25:48 -0300
commita63cd87da97125f8509b82cd48c8256906556372 (patch)
tree58be260e2ff1efe089d47a06bcea52e62efeb62a /pkgs/applications/networking/pyload-ng
parent812e0432fd9f70d3d1ea463faa6a30d9340a8a59 (diff)
pyload-ng: init at 0.5.0b3.dev72
Diffstat (limited to 'pkgs/applications/networking/pyload-ng')
-rw-r--r--pkgs/applications/networking/pyload-ng/default.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/applications/networking/pyload-ng/default.nix b/pkgs/applications/networking/pyload-ng/default.nix
new file mode 100644
index 0000000000000..ebe4db46aba0a
--- /dev/null
+++ b/pkgs/applications/networking/pyload-ng/default.nix
@@ -0,0 +1,54 @@
+{ lib, fetchPypi, python3 }:
+
+python3.pkgs.buildPythonApplication rec {
+  version = "0.5.0b3.dev72";
+  pname = "pyload-ng";
+  format = "pyproject";
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-pcbJc23Fylh/JoWRmbZmC8xUzUqh2ej6gT+B2w8DHFQ=";
+  };
+
+  postPatch = ''
+    # relax version bounds
+    sed -i 's/\([A-z0-9]*\)~=.*$/\1/' setup.cfg
+    # not sure what Flask-Session2 is but flask-session works just fine
+    sed -i '/Flask-Session2/d' setup.cfg
+  '';
+
+  propagatedBuildInputs = with python3.pkgs; [
+    bitmath
+    certifi
+    cheroot
+    cryptography
+    filetype
+    flask
+    flask-babel
+    flask-caching
+    flask-compress
+    flask-session
+    flask-themes2
+    js2py
+    pycurl
+    semver
+    setuptools
+  ];
+
+  passthru.optional-dependencies = {
+    plugins = with python3.pkgs; [
+      beautifulsoup4 # for some plugins
+      colorlog # colorful console logging
+      pillow # for some CAPTCHA plugin
+      send2trash # send some files to trash instead of deleting them
+      slixmpp # XMPP plugin
+    ];
+  };
+
+  meta = with lib; {
+    description = "Free and open-source download manager with support for 1-click-hosting sites";
+    homepage = "https://github.com/pyload/pyload";
+    license = licenses.agpl3Plus;
+    maintainers = with maintainers; [ ruby0b ];
+  };
+}