2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "getmail6";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.18.5";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "1bckrnvjkkbrybs9ccknd4vakzvd7vpp541p2cpv4isaizyxp2ji";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# needs a Docker setup
|
2021-02-05 17:12:51 +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;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ abbe dotlambda ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|