2021-06-19 17:36:29 +01:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-01-24 07:34:30 +00:00
|
|
|
|
2021-06-19 17:36:29 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-01-24 07:34:30 +00:00
|
|
|
pname = "getmail6";
|
2022-05-11 23:57:54 +01:00
|
|
|
version = "6.18.9";
|
2021-01-24 07:34:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-05-11 23:57:54 +01:00
|
|
|
hash = "sha256-qzlURYdE7nv+/wxK3B6WddmhW6xiLS7em3X5O5+CBbI=";
|
2021-01-24 07:34:30 +00:00
|
|
|
};
|
|
|
|
|
2021-06-19 17:36:29 +01:00
|
|
|
# needs a Docker setup
|
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";
|
2022-05-08 21:34:06 +01:00
|
|
|
changelog = "https://github.com/getmail6/getmail6/blob/${src.rev}/docs/CHANGELOG";
|
2021-01-24 07:34:30 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-06-19 17:36:29 +01:00
|
|
|
maintainers = with maintainers; [ abbe dotlambda ];
|
2021-01-24 07:34:30 +00:00
|
|
|
};
|
|
|
|
}
|