2018-07-21 03:44:44 +03:00
|
|
|
{ stdenv, fetchFromGitHub, python2Packages, gnupg1orig, openssl, git }:
|
2014-01-21 17:08:22 +04:00
|
|
|
|
2016-11-18 15:16:36 +03:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2019-08-31 14:41:23 +03:00
|
|
|
pname = "mailpile";
|
2018-02-14 09:24:08 +03:00
|
|
|
version = "1.0.0rc2";
|
2014-01-21 17:08:22 +04:00
|
|
|
|
2018-02-01 03:00:00 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mailpile";
|
|
|
|
repo = "Mailpile";
|
2019-09-09 02:38:31 +03:00
|
|
|
rev = version;
|
2018-02-14 09:24:08 +03:00
|
|
|
sha256 = "1z5psh00fjr8gnl4yjcl4m9ywfj24y1ffa2rfb5q8hq4ksjblbdj";
|
2014-01-21 17:08:22 +04:00
|
|
|
};
|
2014-10-09 14:49:34 +04:00
|
|
|
|
2018-02-01 03:00:00 +03:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts
|
2014-09-14 20:28:13 +04:00
|
|
|
'';
|
2014-01-21 17:08:22 +04:00
|
|
|
|
2018-02-01 03:00:00 +03:00
|
|
|
nativeBuildInputs = with python2Packages; [ pbr git ];
|
|
|
|
PBR_VERSION=version;
|
|
|
|
|
2016-11-18 15:16:36 +03:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2018-02-01 03:00:00 +03:00
|
|
|
appdirs
|
|
|
|
cryptography
|
|
|
|
fasteners
|
|
|
|
gnupg1orig
|
|
|
|
jinja2
|
|
|
|
pgpdump
|
|
|
|
pillow
|
|
|
|
python2Packages.lxml
|
|
|
|
spambayes
|
2014-09-14 20:28:13 +04:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2014-09-26 12:02:20 +04:00
|
|
|
wrapProgram $out/bin/mailpile \
|
2018-02-01 03:00:00 +03:00
|
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1orig openssl ]}" \
|
|
|
|
--set-default MAILPILE_SHARED "$out/share/mailpile"
|
2014-09-14 20:28:13 +04:00
|
|
|
'';
|
2014-01-21 17:08:22 +04:00
|
|
|
|
2016-11-18 15:16:36 +03:00
|
|
|
# No tests were found
|
|
|
|
doCheck = false;
|
|
|
|
|
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";
|
2020-04-01 04:11:51 +03:00
|
|
|
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 ];
|
2017-03-07 02:02:55 +03: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 17:08:22 +04:00
|
|
|
};
|
2014-10-09 14:49:34 +04:00
|
|
|
}
|