summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-21 13:45:21 +0100
committerKerstin <kerstin@erictapen.name>2023-11-21 16:30:48 +0100
commit7ddfd3f64f73fa065ebae80bff13998009d35005 (patch)
tree5d9b59c8d927e2e85b6c4bbf5f279cd1ce7d973f
parent5142b8641019ca1e285ae473c4d38a2516de23b6 (diff)
afew: propagate setuptools, add version test
The dependency on setuptools was removed during a recent refactor, but
afew imports pkg_resources from setuptools, so readd it.

Also add a version test, that executes the cmdline and would've shown
that the CLI fails.

Fixes: #268680
-rw-r--r--pkgs/applications/networking/mailreaders/afew/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/networking/mailreaders/afew/default.nix b/pkgs/applications/networking/mailreaders/afew/default.nix
index a9becb9d8c903..bcd9573974d35 100644
--- a/pkgs/applications/networking/mailreaders/afew/default.nix
+++ b/pkgs/applications/networking/mailreaders/afew/default.nix
@@ -1,4 +1,4 @@
-{ lib, python3Packages, fetchPypi, pkgs }:
+{ lib, python3Packages, fetchPypi, pkgs, testers, afew }:
 
 python3Packages.buildPythonApplication rec {
   pname = "afew";
@@ -25,6 +25,7 @@ python3Packages.buildPythonApplication rec {
     chardet
     dkimpy
     notmuch
+    setuptools
   ];
 
   nativeCheckInputs = [
@@ -44,6 +45,12 @@ python3Packages.buildPythonApplication rec {
     "man"
   ];
 
+  passthru.tests = {
+    version = testers.testVersion {
+      package = afew;
+    };
+  };
+
   meta = with lib; {
     homepage = "https://github.com/afewmail/afew";
     description = "An initial tagging script for notmuch mail";