nixpkgs/pkgs/tools/networking/getmail6/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
953 B
Nix
Raw Normal View History

{ lib
, python3
, fetchFromGitHub
}:
2021-01-24 07:34:30 +00:00
python3.pkgs.buildPythonApplication rec {
2021-01-24 07:34:30 +00:00
pname = "getmail6";
2022-09-19 06:28:23 +00:00
version = "6.18.10";
2021-01-24 07:34:30 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
2022-09-19 06:28:23 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-nRi0HUq8jEugFogerFD7Xu9fgn1njfumbwhChz2t4t8=";
2021-01-24 07:34:30 +00: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
2022-09-20 16:42:57 +00:00
sed -e 's,/usr/bin/getmail,$(dirname $0)/getmail,' -i getmails
2021-01-24 07:34:30 +00:00
'';
meta = with lib; {
description = "A program for retrieving mail";
homepage = "https://getmail6.org";
changelog = "https://github.com/getmail6/getmail6/blob/${src.rev}/docs/CHANGELOG";
2021-01-24 07:34:30 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ abbe dotlambda ];
2021-01-24 07:34:30 +00:00
};
}