Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 36 lines 915 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, isPy3k , setuptools_scm, notmuch, chardet, subprocess32 }: 3 4buildPythonPackage rec { 5 pname = "afew"; 6 version = "1.2.0"; 7 name = "${pname}-${version}"; 8 9 src = fetchFromGitHub { 10 owner = "afewmail"; 11 repo = "afew"; 12 rev = "3405475276a2433e1238be330e538ebf2a976e5e"; 13 sha256 = "1h974avnfc6636az130yjqwm28z3aaqm49bjhpy3razx6zvyhzlf"; 14 }; 15 16 buildInputs = [ setuptools_scm ]; 17 SETUPTOOLS_SCM_PRETEND_VERSION = "${version}"; 18 19 propagatedBuildInputs = [ 20 notmuch 21 chardet 22 ] ++ stdenv.lib.optional (!isPy3k) subprocess32; 23 24 doCheck = false; 25 26 postInstall = '' 27 wrapProgram $out/bin/afew \ 28 --prefix LD_LIBRARY_PATH : ${notmuch}/lib 29 ''; 30 31 meta = with stdenv.lib; { 32 homepage = https://github.com/afewmail/afew; 33 description = "An initial tagging script for notmuch mail"; 34 maintainers = with maintainers; [ garbas ]; 35 }; 36}