2014-09-26 12:02:20 +04:00
|
|
|
{ stdenv, fetchgit, pythonPackages, gnupg1orig, makeWrapper, openssl }:
|
2014-01-21 17:08:22 +04:00
|
|
|
|
2016-02-19 15:12:11 +03:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2014-09-14 20:28:13 +04:00
|
|
|
name = "mailpile-${version}";
|
2014-10-09 14:49:34 +04:00
|
|
|
version = "0.4.1";
|
2014-01-21 17:08:22 +04:00
|
|
|
|
2014-09-26 12:02:20 +04:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/pagekite/Mailpile";
|
2014-10-09 14:49:34 +04:00
|
|
|
rev = "refs/tags/${version}";
|
2016-06-02 14:26:44 +03:00
|
|
|
sha256 = "118b5zwfwmzj38p0mkj3r1s09jxg8x38y0a42b21imzpmli5vpb5";
|
2014-01-21 17:08:22 +04:00
|
|
|
};
|
2014-10-09 14:49:34 +04:00
|
|
|
|
2014-09-14 20:28:13 +04:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.py --replace "data_files.append((dir" "data_files.append(('lib/${pythonPackages.python.libPrefix}/site-packages/' + dir"
|
|
|
|
'';
|
2014-01-21 17:08:22 +04:00
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2014-09-14 20:28:13 +04:00
|
|
|
makeWrapper pillow jinja2 spambayes pythonPackages.lxml
|
|
|
|
python.modules.readline pgpdump gnupg1orig
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2014-09-26 12:02:20 +04:00
|
|
|
wrapProgram $out/bin/mailpile \
|
2016-08-23 01:06:51 +03:00
|
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1orig openssl ]}"
|
2014-09-14 20:28:13 +04:00
|
|
|
'';
|
2014-01-21 17:08:22 +04: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 15:00:43 +03:00
|
|
|
license = [ licenses.asl20 licenses.agpl3 ];
|
2014-01-21 17:08:22 +04:00
|
|
|
platforms = platforms.linux;
|
2016-05-17 14:57:28 +03:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2014-01-21 17:08:22 +04:00
|
|
|
};
|
2014-10-09 14:49:34 +04:00
|
|
|
}
|