about summary refs log tree commit diff
path: root/pkgs/applications/networking/pyload-ng
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2023-12-24 22:23:15 +0100
committerBruno BELANYI <bruno@belanyi.fr>2024-01-23 15:07:40 +0000
commit60518d6a5245bbd48b0d043549d6e22209474873 (patch)
tree3bfadd8eaf751038ae96e7214f7054dbb95720dd /pkgs/applications/networking/pyload-ng
parent70d0a6e54786994fb41f66796e20aff224028faa (diff)
nixos/pyload: init test
Diffstat (limited to 'pkgs/applications/networking/pyload-ng')
-rw-r--r--pkgs/applications/networking/pyload-ng/default.nix24
1 files changed, 15 insertions, 9 deletions
diff --git a/pkgs/applications/networking/pyload-ng/default.nix b/pkgs/applications/networking/pyload-ng/default.nix
index eb0b6af94efe8..1f638d43daef0 100644
--- a/pkgs/applications/networking/pyload-ng/default.nix
+++ b/pkgs/applications/networking/pyload-ng/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchPypi, python3 }:
+{ lib, fetchPypi, nixosTests, python3 }:
 
 python3.pkgs.buildPythonApplication rec {
   version = "0.5.0b3.dev75";
@@ -43,14 +43,20 @@ python3.pkgs.buildPythonApplication rec {
     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
-    ];
+  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
+      ];
+    };
+
+    tests = {
+      inherit (nixosTests) pyload;
+    };
   };
 
   meta = with lib; {