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