mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
95b25f7803
Diff: https://github.com/getmail6/getmail6/compare/refs/tags/v6.18.12...v6.18.13 Changelog: https://github.com/getmail6/getmail6/blob/refs/tags/v6.18.13/docs/CHANGELOG
39 lines
979 B
Nix
39 lines
979 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "getmail6";
|
|
version = "6.18.13";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cyX+3LsXqBpAvaOPVpT4EuPzqJm9kki1uNTG+7k3Q28=";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|