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

36 lines
815 B
Nix
Raw Normal View History

{ lib
, python3
, fetchFromGitHub
}:
2021-01-24 08:34:30 +01:00
python3.pkgs.buildPythonApplication rec {
2021-01-24 08:34:30 +01:00
pname = "getmail6";
version = "6.18.3";
2021-01-24 08:34:30 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-8tBSi9QzWcVL09j6aa2yWFhLlqaI6DREX2PpKvHC3qU=";
2021-01-24 08:34:30 +01:00
};
# needs a Docker setup
2021-01-24 08:34:30 +01: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;
maintainers = with maintainers; [ abbe dotlambda ];
2021-01-24 08:34:30 +01:00
};
}