about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/pyrosimple/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/p2p/pyrosimple/default.nix')
-rw-r--r--pkgs/applications/networking/p2p/pyrosimple/default.nix29
1 files changed, 20 insertions, 9 deletions
diff --git a/pkgs/applications/networking/p2p/pyrosimple/default.nix b/pkgs/applications/networking/p2p/pyrosimple/default.nix
index 15a9ce266e00..c735057e4573 100644
--- a/pkgs/applications/networking/p2p/pyrosimple/default.nix
+++ b/pkgs/applications/networking/p2p/pyrosimple/default.nix
@@ -6,6 +6,8 @@
 , testers
 , fetchPypi
 , buildPythonPackage
+, pythonRelaxDepsHook
+, poetry-core
 , bencode-py
 , apscheduler
 , jinja2
@@ -24,14 +26,27 @@
 }:
 
 let
-  pname = "pyrosimple";
-  version = "2.7.0";
+ pname = "pyrosimple";
+ version = "2.8.0";
+in buildPythonPackage {
+  inherit pname version;
 
   src = fetchPypi {
     inherit pname version;
-    hash = "sha256-SMqzvTbWFHwnbMQ+6K0m1v+PybceQK5EHEuN8FB6SaU=";
+    hash = "sha256-K0QjEcGzROlSWuUHWqUbcOdKccrHex2SlwPAmsmIbaQ=";
   };
 
+  format = "pyproject";
+
+  nativeBuildInputs = [
+    poetry-core
+    pythonRelaxDepsHook
+  ];
+
+  pythonRelaxDeps = [
+    "python-daemon"
+  ];
+
   propagatedBuildInputs = [
     bencode-py
     apscheduler
@@ -48,9 +63,6 @@ let
     tomli-w
   ] ++ lib.optional withInotify inotify;
 
-in buildPythonPackage {
-  inherit pname version src propagatedBuildInputs;
-
   passthru = {
     updateScript = nix-update-script { };
     tests = testers.testVersion {
@@ -59,14 +71,13 @@ in buildPythonPackage {
     };
   };
 
-  meta = let inherit (lib) licenses platforms maintainers;
-  in {
+  meta = with lib; {
     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; };
+    maintainers = with maintainers; [ ne9z vamega ];
   };
 
 }