audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / de / deltachat-cursed / package.nix
blob603b48eed334234e9ee881881c4243bd99263fe0
2   lib,
3   python3,
4   fetchFromGitHub,
5   testers,
6   deltachat-cursed,
7 }:
9 python3.pkgs.buildPythonApplication rec {
10   pname = "deltachat-cursed";
11   version = "0.10.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "adbenitez";
17     repo = "deltachat-cursed";
18     rev = "v${version}";
19     hash = "sha256-KCPIZf/8Acp9syFN1IHbf8hQrjk0yzniff+dVSSM/Ro=";
20   };
22   build-system = with python3.pythonOnBuildForHost.pkgs; [
23     setuptools
24     setuptools-scm
25   ];
27   dependencies = with python3.pkgs; [
28     appdirs
29     deltachat2
30     urwid
31     urwid-readline
32   ];
34   doCheck = false; # no tests implemented
36   passthru.tests = {
37     version = testers.testVersion rec {
38       package = deltachat-cursed;
39       command = ''
40         HOME="$TEMP" ${lib.getExe package} --version
41       '';
42     };
43   };
45   meta = with lib; {
46     description = "Lightweight Delta Chat client";
47     homepage = "https://github.com/adbenitez/deltachat-cursed";
48     license = licenses.gpl3Plus;
49     mainProgram = "curseddelta";
50     maintainers = with maintainers; [ dotlambda ];
51   };