2014-09-26 09:02:20 +01:00
|
|
|
{ stdenv, fetchgit, pythonPackages, gnupg1orig, makeWrapper, openssl }:
|
2014-01-21 13:08:22 +00:00
|
|
|
|
2014-09-14 17:28:13 +01:00
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
|
|
name = "mailpile-${version}";
|
|
|
|
version = "0.4.0";
|
2014-01-21 13:08:22 +00:00
|
|
|
|
2014-09-26 09:02:20 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/pagekite/Mailpile";
|
|
|
|
rev = "af3e2554dcef892cc44e044ce61e1693f09228c0";
|
|
|
|
sha256 = "0p8j5w5281rjl0nigsw7glfp7inz13p6iqlr9g3m3vh72i9pvl7h";
|
2014-01-21 13:08:22 +00:00
|
|
|
};
|
2014-09-14 17:28:13 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.py --replace "data_files.append((dir" "data_files.append(('lib/${pythonPackages.python.libPrefix}/site-packages/' + dir"
|
|
|
|
'';
|
2014-01-21 13:08:22 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2014-09-14 17:28:13 +01:00
|
|
|
makeWrapper pillow jinja2 spambayes pythonPackages.lxml
|
|
|
|
python.modules.readline pgpdump gnupg1orig
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2014-09-26 09:02:20 +01:00
|
|
|
wrapProgram $out/bin/mailpile \
|
|
|
|
--prefix PATH ":" "${gnupg1orig}/bin:${openssl}/bin"
|
2014-09-14 17:28:13 +01:00
|
|
|
'';
|
2014-01-21 13:08:22 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A modern, fast web-mail client with user-friendly encryption and privacy features";
|
|
|
|
homepage = https://www.mailpile.is/;
|
2014-01-21 14:53:21 +00:00
|
|
|
license = map (getAttr "shortName") [ licenses.asl20 licenses.agpl3 ];
|
2014-01-21 13:08:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.iElectric ];
|
|
|
|
};
|
2014-09-14 17:28:13 +01:00
|
|
|
}
|