2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, python2Packages, gnupg1orig, openssl, git }:
|
2014-01-21 13:08:22 +00:00
|
|
|
|
2016-11-18 12:16:36 +00:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "mailpile";
|
2018-02-14 06:24:08 +00:00
|
|
|
version = "1.0.0rc2";
|
2014-01-21 13:08:22 +00:00
|
|
|
|
2018-02-01 00:00:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mailpile";
|
|
|
|
repo = "Mailpile";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2018-02-14 06:24:08 +00:00
|
|
|
sha256 = "1z5psh00fjr8gnl4yjcl4m9ywfj24y1ffa2rfb5q8hq4ksjblbdj";
|
2014-01-21 13:08:22 +00:00
|
|
|
};
|
2014-10-09 10:49:34 +00:00
|
|
|
|
2018-02-01 00:00:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts
|
2014-09-14 16:28:13 +00:00
|
|
|
'';
|
2014-01-21 13:08:22 +00:00
|
|
|
|
2018-02-01 00:00:00 +00:00
|
|
|
nativeBuildInputs = with python2Packages; [ pbr git ];
|
|
|
|
PBR_VERSION=version;
|
|
|
|
|
2016-11-18 12:16:36 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2018-02-01 00:00:00 +00:00
|
|
|
appdirs
|
|
|
|
cryptography
|
|
|
|
fasteners
|
|
|
|
gnupg1orig
|
|
|
|
jinja2
|
|
|
|
pgpdump
|
|
|
|
pillow
|
|
|
|
python2Packages.lxml
|
|
|
|
spambayes
|
2014-09-14 16:28:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2014-09-26 08:02:20 +00:00
|
|
|
wrapProgram $out/bin/mailpile \
|
2021-01-15 05:42:41 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ gnupg1orig openssl ]}" \
|
2018-02-01 00:00:00 +00:00
|
|
|
--set-default MAILPILE_SHARED "$out/share/mailpile"
|
2014-09-14 16:28:13 +00:00
|
|
|
'';
|
2014-01-21 13:08:22 +00:00
|
|
|
|
2016-11-18 12:16:36 +00:00
|
|
|
# No tests were found
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-01-21 13:08:22 +00:00
|
|
|
description = "A modern, fast web-mail client with user-friendly encryption and privacy features";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.mailpile.is/";
|
2015-06-19 12:00:43 +00:00
|
|
|
license = [ licenses.asl20 licenses.agpl3 ];
|
2014-01-21 13:08:22 +00:00
|
|
|
platforms = platforms.linux;
|
2021-03-03 10:50:26 +00:00
|
|
|
maintainers = [ ];
|
2017-03-06 23:02:55 +00: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 13:08:22 +00:00
|
|
|
};
|
2014-10-09 10:49:34 +00:00
|
|
|
}
|