mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
746a663705
Diff: https://github.com/getmail6/getmail6/compare/refs/tags/v6.19.03...v6.19.04 Changelog: https://github.com/getmail6/getmail6/blob/refs/tags/v6.19.04/docs/CHANGELOG
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "getmail6";
|
|
version = "6.19.04";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getmail6";
|
|
repo = "getmail6";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-mKYAk3rXWBMgyxXenVRTGXIUG6ruz5/CxLmh8rpinfI=";
|
|
};
|
|
|
|
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.rev}/docs/CHANGELOG";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ abbe dotlambda ];
|
|
};
|
|
}
|