9543354213
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
35 lines
816 B
Nix
35 lines
816 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "getmail6";
|
|
version = "6.18.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1pxrwqpg8vnrrljigzzaq8g2g6nx55x7a8q032bp4wqyhc6jhpxq";
|
|
};
|
|
|
|
# needs a Docker setup
|
|
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 ];
|
|
};
|
|
}
|