Files
nixpkgs/pkgs/by-name/ge/getmail6/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.0 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "getmail6";
version = "6.19.10";
pyproject = true;
src = fetchFromGitHub {
owner = "getmail6";
repo = "getmail6";
tag = "v${version}";
hash = "sha256-W9B6+riHsE5Hu2J8QnhPKhpRlXsQyg3ThP4ADp/0UhI=";
};
build-system = with python3.pkgs; [
setuptools
];
# 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
sed -e 's,/usr/bin/getmail,$(dirname $0)/getmail,' -i getmails
'';
meta = with lib; {
description = "Program for retrieving mail";
homepage = "https://getmail6.org";
changelog = "https://github.com/getmail6/getmail6/blob/${src.tag}/docs/CHANGELOG";
license = licenses.gpl2Plus;
maintainers = with maintainers; [
abbe
dotlambda
];
};
}