2014-09-26 01:02:20 -07:00
|
|
|
{ stdenv, fetchgit, pythonPackages, gnupg1orig, makeWrapper, openssl }:
|
2014-01-21 05:08:22 -08:00
|
|
|
|
2016-02-19 04:12:11 -08:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2014-09-14 09:28:13 -07:00
|
|
|
name = "mailpile-${version}";
|
2014-10-09 03:49:34 -07:00
|
|
|
version = "0.4.1";
|
2014-01-21 05:08:22 -08:00
|
|
|
|
2014-09-26 01:02:20 -07:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/pagekite/Mailpile";
|
2014-10-09 03:49:34 -07:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "0h84cc9kwb0m4admqjkpg4pllxlh095rmzvrql45kz71fpnxs780";
|
2014-01-21 05:08:22 -08:00
|
|
|
};
|
2014-10-09 03:49:34 -07:00
|
|
|
|
2014-09-14 09:28:13 -07:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.py --replace "data_files.append((dir" "data_files.append(('lib/${pythonPackages.python.libPrefix}/site-packages/' + dir"
|
|
|
|
'';
|
2014-01-21 05:08:22 -08:00
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2014-09-14 09:28:13 -07:00
|
|
|
makeWrapper pillow jinja2 spambayes pythonPackages.lxml
|
|
|
|
python.modules.readline pgpdump gnupg1orig
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2014-09-26 01:02:20 -07:00
|
|
|
wrapProgram $out/bin/mailpile \
|
2016-02-01 10:46:16 -08:00
|
|
|
--prefix PATH ":" "${gnupg1orig}/bin:${openssl.bin}/bin"
|
2014-09-14 09:28:13 -07:00
|
|
|
'';
|
2014-01-21 05:08:22 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A modern, fast web-mail client with user-friendly encryption and privacy features";
|
|
|
|
homepage = https://www.mailpile.is/;
|
2015-06-19 05:00:43 -07:00
|
|
|
license = [ licenses.asl20 licenses.agpl3 ];
|
2014-01-21 05:08:22 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.iElectric ];
|
|
|
|
};
|
2014-10-09 03:49:34 -07:00
|
|
|
}
|