2024-12-11 22:00:16 -08:00

53 lines
1.0 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
testers,
deltachat-cursed,
}:
python3.pkgs.buildPythonApplication rec {
pname = "deltachat-cursed";
version = "0.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "adbenitez";
repo = "deltachat-cursed";
rev = "v${version}";
hash = "sha256-KCPIZf/8Acp9syFN1IHbf8hQrjk0yzniff+dVSSM/Ro=";
};
build-system = with python3.pythonOnBuildForHost.pkgs; [
setuptools
setuptools-scm
];
dependencies = with python3.pkgs; [
appdirs
deltachat2
urwid
urwid-readline
];
doCheck = false; # no tests implemented
passthru.tests = {
version = testers.testVersion rec {
package = deltachat-cursed;
command = ''
HOME="$TEMP" ${lib.getExe package} --version
'';
};
};
meta = with lib; {
description = "Lightweight Delta Chat client";
homepage = "https://github.com/adbenitez/deltachat-cursed";
license = licenses.gpl3Plus;
mainProgram = "curseddelta";
maintainers = with maintainers; [ dotlambda ];
};
}