6 python3.pkgs.buildPythonApplication rec {
11 src = fetchFromGitHub {
14 rev = "refs/tags/v${version}";
15 hash = "sha256-GjB53bl2gh3SA+kqC9rrQ9I4rP0z69G/bamInmq8W+I=";
18 build-system = with python3.pkgs; [
22 # needs a Docker setup
25 pythonImportsCheck = [ "getmailcore" ];
28 # getmail spends a lot of effort to build an absolute path for
29 # documentation installation; too bad it is counterproductive now
30 sed -e '/datadir or prefix,/d' -i setup.py
31 sed -e 's,/usr/bin/getmail,$(dirname $0)/getmail,' -i getmails
35 description = "Program for retrieving mail";
36 homepage = "https://getmail6.org";
37 changelog = "https://github.com/getmail6/getmail6/blob/${src.rev}/docs/CHANGELOG";
38 license = licenses.gpl2Plus;
39 maintainers = with maintainers; [ abbe dotlambda ];