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
This commit is contained in:
parent
5142b86410
commit
7ddfd3f64f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user