summary refs log tree commit diff
path: root/pkgs/development/python-modules/alot
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-03-10 12:57:55 +0100
committerElis Hirwing <elis@hirwing.se>2018-03-10 12:57:55 +0100
commit43935736f6d5d8860f0c4e63b630eb945ca36490 (patch)
tree8bbbd5a0ef0c304cab8b597369923e6a6ad6d6bc /pkgs/development/python-modules/alot
parent4d62ada05dd5401f04d5fb58cdb45edfdd5637d5 (diff)
downloadnixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.tar
nixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.tar.gz
nixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.tar.bz2
nixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.tar.lz
nixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.tar.xz
nixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.tar.zst
nixlib-43935736f6d5d8860f0c4e63b630eb945ca36490.zip
alot: move to own module
Diffstat (limited to 'pkgs/development/python-modules/alot')
-rw-r--r--pkgs/development/python-modules/alot/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/alot/default.nix b/pkgs/development/python-modules/alot/default.nix
new file mode 100644
index 000000000000..67cd7eafd129
--- /dev/null
+++ b/pkgs/development/python-modules/alot/default.nix
@@ -0,0 +1,48 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k
+, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, pygpgme, mock, file, gpgme}:
+
+buildPythonPackage rec {
+  version = "0.5.1";
+  pname = "alot";
+
+  disabled = isPy3k;
+
+  src = fetchFromGitHub {
+    owner = "pazz";
+    repo = pname;
+    rev = "version";
+    sha256 = "0ipkhc5wllfq78lg47aiq4qih0yjq8ad9xkrbgc88xk8pk9166i8";
+  };
+
+  postPatch = ''
+    substituteInPlace alot/defaults/alot.rc.spec \
+      --replace "themes_dir = string(default=None)" \
+                "themes_dir = string(default='$out/share/themes')"
+  '';
+
+  propagatedBuildInputs = [
+    notmuch
+    urwid
+    urwidtrees
+    twisted
+    python_magic
+    configobj
+    pygpgme
+    mock
+    file
+  ];
+
+  postInstall = ''
+    mkdir -p $out/share
+    cp -r extra/themes $out/share
+    wrapProgram $out/bin/alot \
+      --prefix LD_LIBRARY_PATH : '${stdenv.lib.makeLibraryPath [ notmuch file gpgme ]}'
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/pazz/alot;
+    description = "Terminal MUA using notmuch mail";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ garbas ];
+  };
+}