base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / de / deltachat-cursed / package.nix
bloba8299361d928b860181192d59b347e40a364e14b
1 { lib
2 , python3
3 , fetchFromGitHub
4 , testers
5 , deltachat-cursed
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "deltachat-cursed";
10   version = "0.9.0";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "adbenitez";
16     repo = "deltachat-cursed";
17     rev = "v${version}";
18     hash = "sha256-z4JKe5soR4FdIn8hugxtnxQr/9V8m8a7QRzE1liIexc=";
19   };
21   build-system = with python3.pythonOnBuildForHost.pkgs; [
22     setuptools
23     setuptools-scm
24   ];
26   dependencies = with python3.pkgs; [
27     appdirs
28     deltachat2
29     emoji
30     notify-py
31     setuptools # for pkg_resources
32     urwid-readline
33   ];
35   doCheck = false; # no tests implemented
37   passthru.tests = {
38     version = testers.testVersion rec {
39       package = deltachat-cursed;
40       command = ''
41         HOME="$TEMP" ${lib.getExe package} --version
42       '';
43     };
44   };
46   meta = with lib; {
47     description = "Lightweight Delta Chat client";
48     homepage = "https://github.com/adbenitez/deltachat-cursed";
49     license = licenses.gpl3Plus;
50     mainProgram = "curseddelta";
51     maintainers = with maintainers; [ dotlambda ];
52   };