about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/pyrosimple
diff options
context:
space:
mode:
authorMaurice Zhou <jasper@apvc.uk>2023-03-31 08:03:58 +0200
committerMaurice Zhou <yuchen@apvc.uk>2023-04-22 08:24:18 +0200
commit7432b75233b05597124dc5d04e5d787bdd1711f9 (patch)
treeb2ff81d37291203a87a300aa5a1f29aba41a3f86 /pkgs/applications/networking/p2p/pyrosimple
parenta56b0af5ff980f795b223bac9a03dcf8460ca5aa (diff)
pyrosimple: init at 2.7.0
Signed-off-by: Maurice Zhou <yuchen@apvc.uk>
Diffstat (limited to 'pkgs/applications/networking/p2p/pyrosimple')
-rw-r--r--pkgs/applications/networking/p2p/pyrosimple/default.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/pyrosimple/default.nix b/pkgs/applications/networking/p2p/pyrosimple/default.nix
new file mode 100644
index 0000000000000..15a9ce266e00d
--- /dev/null
+++ b/pkgs/applications/networking/p2p/pyrosimple/default.nix
@@ -0,0 +1,72 @@
+{ lib
+, stdenv
+, python3Packages
+, nix-update-script
+, pyrosimple
+, testers
+, fetchPypi
+, buildPythonPackage
+, bencode-py
+, apscheduler
+, jinja2
+, python-daemon
+, importlib-resources
+, parsimonious
+, prometheus-client
+, prompt-toolkit
+, requests
+, shtab
+, inotify
+, withInotify ? stdenv.isLinux
+, python-box
+, tomli
+, tomli-w
+}:
+
+let
+  pname = "pyrosimple";
+  version = "2.7.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-SMqzvTbWFHwnbMQ+6K0m1v+PybceQK5EHEuN8FB6SaU=";
+  };
+
+  propagatedBuildInputs = [
+    bencode-py
+    apscheduler
+    jinja2
+    python-daemon
+    importlib-resources
+    parsimonious
+    prometheus-client
+    prompt-toolkit
+    requests
+    shtab
+    python-box
+    tomli
+    tomli-w
+  ] ++ lib.optional withInotify inotify;
+
+in buildPythonPackage {
+  inherit pname version src propagatedBuildInputs;
+
+  passthru = {
+    updateScript = nix-update-script { };
+    tests = testers.testVersion {
+      package = pyrosimple;
+      command = "pyroadmin --version";
+    };
+  };
+
+  meta = let inherit (lib) licenses platforms maintainers;
+  in {
+    homepage = "https://kannibalox.github.io/pyrosimple/";
+    description = "A rTorrent client and Python 3 fork of the pyrocore tools";
+    license = licenses.gpl3Plus;
+    changelog = "https://github.com/kannibalox/pyrosimple/blob/v${version}/CHANGELOG.md";
+    platforms = platforms.all;
+    maintainers = builtins.attrValues { inherit (maintainers) ne9z; };
+  };
+
+}