2016-11-18 13:16:36 +01:00
|
|
|
{ stdenv, fetchgit, python2Packages, gnupg1orig, makeWrapper, openssl }:
|
2014-01-21 14:08:22 +01:00
|
|
|
|
2016-11-18 13:16:36 +01:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2014-09-14 18:28:13 +02:00
|
|
|
name = "mailpile-${version}";
|
2014-10-09 12:49:34 +02:00
|
|
|
version = "0.4.1";
|
2014-01-21 14:08:22 +01:00
|
|
|
|
2014-09-26 10:02:20 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/pagekite/Mailpile";
|
2014-10-09 12:49:34 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "118b5zwfwmzj38p0mkj3r1s09jxg8x38y0a42b21imzpmli5vpb5";
|
2014-01-21 14:08:22 +01:00
|
|
|
};
|
2014-10-09 12:49:34 +02:00
|
|
|
|
2014-09-14 18:28:13 +02:00
|
|
|
patchPhase = ''
|
2016-11-18 13:16:36 +01:00
|
|
|
substituteInPlace setup.py --replace "data_files.append((dir" "data_files.append(('lib/${python2Packages.python.libPrefix}/site-packages/' + dir"
|
2014-09-14 18:28:13 +02:00
|
|
|
'';
|
2014-01-21 14:08:22 +01:00
|
|
|
|
2016-11-18 13:16:36 +01:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
|
|
|
makeWrapper pillow jinja2 spambayes python2Packages.lxml
|
2016-10-06 20:34:35 +02:00
|
|
|
pgpdump gnupg1orig
|
2014-09-14 18:28:13 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2014-09-26 10:02:20 +02:00
|
|
|
wrapProgram $out/bin/mailpile \
|
2016-08-23 00:06:51 +02:00
|
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1orig openssl ]}"
|
2014-09-14 18:28:13 +02:00
|
|
|
'';
|
2014-01-21 14:08:22 +01:00
|
|
|
|
2016-11-18 13:16:36 +01:00
|
|
|
# No tests were found
|
|
|
|
doCheck = false;
|
|
|
|
|
2014-01-21 14:08:22 +01: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 14:00:43 +02:00
|
|
|
license = [ licenses.asl20 licenses.agpl3 ];
|
2014-01-21 14:08:22 +01:00
|
|
|
platforms = platforms.linux;
|
2016-05-17 13:57:28 +02:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2017-03-07 00:02:55 +01:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"Numerous and uncounted, upstream has requested we not package it. See more: https://github.com/NixOS/nixpkgs/pull/23058#issuecomment-283515104"
|
|
|
|
];
|
2014-01-21 14:08:22 +01:00
|
|
|
};
|
2014-10-09 12:49:34 +02:00
|
|
|
}
|