nixpkgs/pkgs/applications/networking/mailreaders/afew/default.nix

29 lines
776 B
Nix
Raw Normal View History

{ stdenv, pythonPackages, notmuch }:
pythonPackages.buildPythonApplication rec {
pname = "afew";
version = "1.2.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r";
};
buildInputs = with pythonPackages; [ setuptools_scm ];
propagatedBuildInputs = with pythonPackages; [
pythonPackages.notmuch chardet
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;
makeWrapperArgs = [
''--prefix PATH ':' "${notmuch}/bin"''
];
meta = with stdenv.lib; {
homepage = https://github.com/afewmail/afew;
description = "An initial tagging script for notmuch mail";
license = licenses.isc;
maintainers = with maintainers; [ garbas andir flokli ];
};
}