diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-11-21 13:45:21 +0100 |
---|---|---|
committer | Kerstin <kerstin@erictapen.name> | 2023-11-21 16:30:48 +0100 |
commit | 7ddfd3f64f73fa065ebae80bff13998009d35005 (patch) | |
tree | 5d9b59c8d927e2e85b6c4bbf5f279cd1ce7d973f | |
parent | 5142b8641019ca1e285ae473c4d38a2516de23b6 (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.nix | 9 |
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"; |