nixpkgs-suyu/pkgs/applications/networking/mailreaders/mailpile/default.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python2Packages, gnupg1orig, openssl, git }:
2016-11-18 13:16:36 +01:00
python2Packages.buildPythonApplication rec {
2019-08-31 13:41:23 +02:00
pname = "mailpile";
2018-02-14 07:24:08 +01:00
version = "1.0.0rc2";
src = fetchFromGitHub {
owner = "mailpile";
repo = "Mailpile";
2019-09-09 01:38:31 +02:00
rev = version;
2018-02-14 07:24:08 +01:00
sha256 = "1z5psh00fjr8gnl4yjcl4m9ywfj24y1ffa2rfb5q8hq4ksjblbdj";
};
2014-10-09 12:49:34 +02:00
postPatch = ''
patchShebangs scripts
2014-09-14 18:28:13 +02:00
'';
nativeBuildInputs = with python2Packages; [ pbr git ];
PBR_VERSION=version;
2016-11-18 13:16:36 +01:00
propagatedBuildInputs = with python2Packages; [
appdirs
cryptography
fasteners
gnupg1orig
jinja2
pgpdump
pillow
python2Packages.lxml
spambayes
2014-09-14 18:28:13 +02:00
];
postInstall = ''
wrapProgram $out/bin/mailpile \
2021-01-15 06:42:41 +01:00
--prefix PATH ":" "${lib.makeBinPath [ gnupg1orig openssl ]}" \
--set-default MAILPILE_SHARED "$out/share/mailpile"
2014-09-14 18:28:13 +02:00
'';
2016-11-18 13:16:36 +01:00
# No tests were found
doCheck = false;
meta = with 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 ];
platforms = platforms.linux;
maintainers = [ ];
knownVulnerabilities = [
"Numerous and uncounted, upstream has requested we not package it. See more: https://github.com/NixOS/nixpkgs/pull/23058#issuecomment-283515104"
];
};
2014-10-09 12:49:34 +02:00
}