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

35 lines
1.1 KiB
Nix
Raw Normal View History

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