diff options
author | Robert Schütz <nix@dotlambda.de> | 2024-06-05 21:47:42 -0700 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2024-06-05 21:56:08 -0700 |
commit | 69c89c5c6218f4a27d40ed550000e8d20068fcc9 (patch) | |
tree | e362ab840bb54f5816d99c55d94d6947487ae300 /pkgs/by-name/ge | |
parent | 818dbe2f96df233d2041739d6079bb616d3e5597 (diff) |
getmail6: 6.18.14 -> 6.19.00
Diff: https://github.com/getmail6/getmail6/compare/refs/tags/v6.18.14...v6.19.00 Changelog: https://github.com/getmail6/getmail6/blob/refs/tags/v6.19.00/docs/CHANGELOG
Diffstat (limited to 'pkgs/by-name/ge')
-rw-r--r-- | pkgs/by-name/ge/getmail6/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/ge/getmail6/package.nix b/pkgs/by-name/ge/getmail6/package.nix new file mode 100644 index 0000000000000..575fd11f670ff --- /dev/null +++ b/pkgs/by-name/ge/getmail6/package.nix @@ -0,0 +1,41 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "getmail6"; + version = "6.19.00"; + pyproject = true; + + src = fetchFromGitHub { + owner = "getmail6"; + repo = "getmail6"; + rev = "refs/tags/v${version}"; + hash = "sha256-cAho0fAvxUoxKrvS7XJaKYGEGgtA8Xl6dOEtVtUvK10="; + }; + + 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 = "A 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 ]; + }; +} |