at 18.09-beta 1.5 kB view raw
1{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPy3k 2, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme 3, service-identity 4, gnupg ? null, sphinx, awk ? null, procps ? null, future ? null 5, withManpage ? false }: 6 7 8buildPythonPackage rec { 9 pname = "alot"; 10 version = "0.7"; 11 outputs = [ "out" ] ++ lib.optional withManpage "man"; 12 13 disabled = isPy3k; 14 15 src = fetchFromGitHub { 16 owner = "pazz"; 17 repo = "alot"; 18 rev = "${version}"; 19 sha256 = "1y932smng7qx7ybmqw4qh75b0lv9imfs5ak9fd0qhysij8kpmdhi"; 20 }; 21 22 nativeBuildInputs = lib.optional withManpage sphinx; 23 24 propagatedBuildInputs = [ 25 notmuch 26 urwid 27 urwidtrees 28 twisted 29 python_magic 30 configobj 31 service-identity 32 file 33 gpgme 34 ]; 35 36 # some twisted tests need the network (test_env_set... ) 37 doCheck = false; 38 postBuild = lib.optionalString withManpage "make -C docs man"; 39 40 checkInputs = [ awk future mock gnupg procps ]; 41 42 postInstall = lib.optionalString withManpage '' 43 mkdir -p $out/man 44 cp -r docs/build/man $out/man 45 '' 46 + '' 47 mkdir -p $out/share/{applications,alot} 48 cp -r extra/themes $out/share/alot 49 50 sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop 51 ''; 52 53 meta = with stdenv.lib; { 54 homepage = https://github.com/pazz/alot; 55 description = "Terminal MUA using notmuch mail"; 56 license = licenses.gpl3; 57 platforms = platforms.linux; 58 maintainers = with maintainers; [ garbas ]; 59 }; 60}