Commit 7ddfd3f6 authored by Martin Weinelt's avatar Martin Weinelt Committed by Kerstin
Browse files

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
parent 5142b864
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
{ 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";