3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/getmail6/default.nix
2021-10-31 02:06:17 +00:00

36 lines
816 B
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "getmail6";
version = "6.18.5";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1bckrnvjkkbrybs9ccknd4vakzvd7vpp541p2cpv4isaizyxp2ji";
};
# needs a Docker setup
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 dotlambda ];
};
}