2017-07-19 10:23:28 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
2017-09-21 09:51:57 +01:00
|
|
|
, isPy3k , setuptools_scm, notmuch, chardet, subprocess32 }:
|
2017-07-19 10:23:28 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "afew";
|
2017-09-21 09:51:57 +01:00
|
|
|
version = "1.2.0";
|
2017-07-19 10:23:28 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "afewmail";
|
|
|
|
repo = "afew";
|
2017-09-21 09:51:57 +01:00
|
|
|
rev = "3405475276a2433e1238be330e538ebf2a976e5e";
|
|
|
|
sha256 = "1h974avnfc6636az130yjqwm28z3aaqm49bjhpy3razx6zvyhzlf";
|
2017-07-19 10:23:28 +01:00
|
|
|
};
|
|
|
|
|
2017-09-21 09:51:57 +01:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = "${version}";
|
2017-07-19 10:23:28 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
notmuch
|
|
|
|
chardet
|
|
|
|
] ++ stdenv.lib.optional (!isPy3k) subprocess32;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/afew \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${notmuch}/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-09-13 18:42:40 +01:00
|
|
|
homepage = https://github.com/afewmail/afew;
|
2017-07-19 10:23:28 +01:00
|
|
|
description = "An initial tagging script for notmuch mail";
|
|
|
|
maintainers = with maintainers; [ garbas ];
|
|
|
|
};
|
|
|
|
}
|