Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

authored by Martin Weinelt and committed by Kerstin 7ddfd3f6 5142b864

+8 -1
+8 -1
pkgs/applications/networking/mailreaders/afew/default.nix
··· 1 - { lib, python3Packages, fetchPypi, pkgs }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "afew"; ··· 25 chardet 26 dkimpy 27 notmuch 28 ]; 29 30 nativeCheckInputs = [ ··· 43 "doc" 44 "man" 45 ]; 46 47 meta = with lib; { 48 homepage = "https://github.com/afewmail/afew";
··· 1 + { lib, python3Packages, fetchPypi, pkgs, testers, afew }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "afew"; ··· 25 chardet 26 dkimpy 27 notmuch 28 + setuptools 29 ]; 30 31 nativeCheckInputs = [ ··· 44 "doc" 45 "man" 46 ]; 47 + 48 + passthru.tests = { 49 + version = testers.testVersion { 50 + package = afew; 51 + }; 52 + }; 53 54 meta = with lib; { 55 homepage = "https://github.com/afewmail/afew";