From 7ddfd3f64f73fa065ebae80bff13998009d35005 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 21 Nov 2023 13:45:21 +0100 Subject: [PATCH] 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 --- .../applications/networking/mailreaders/afew/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/mailreaders/afew/default.nix b/pkgs/applications/networking/mailreaders/afew/default.nix index a9becb9d8c90..bcd9573974d3 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";