3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/getmail6/default.nix

32 lines
788 B
Nix
Raw Normal View History

{ fetchFromGitHub, python3Packages, lib }:
2021-01-24 07:34:30 +00:00
python3Packages.buildPythonApplication rec {
pname = "getmail6";
2021-05-14 06:30:58 +01:00
version = "6.16";
2021-01-24 07:34:30 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2021-05-14 06:30:58 +01:00
sha256 = "1y373nzbffjjjs43441cn3wrb0yq1mw2vqixhizbzdacrs45xbfa";
2021-01-24 07:34:30 +00:00
};
doCheck = false;
pythonImportsCheck = [ "getmailcore" ];
postPatch = ''
# getmail spends a lot of effort to build an absolute path for
# documentation installation; too bad it is counterproductive now
sed -e '/datadir or prefix,/d' -i setup.py
'';
meta = with lib; {
description = "A program for retrieving mail";
homepage = "https://getmail6.org";
updateWalker = true;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ abbe ];
};
}