biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / deltachat-cursed / default.nix
blob8e496c6c110121397812ab6b49bc4344ad08b79f
1 { lib
2 , python3
3 , fetchFromGitHub
4 , testers
5 , deltachat-cursed
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "deltachat-cursed";
10   version = "0.8.0";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "adbenitez";
16     repo = "deltachat-cursed";
17     rev = "v${version}";
18     hash = "sha256-1QNhNPa6ZKn0lGQXs/cmfdSFHscwlYwFC/2DpnMoHvY=";
19   };
21   nativeBuildInputs = with python3.pythonOnBuildForHost.pkgs; [
22     setuptools
23     setuptools-scm
24   ];
26   propagatedBuildInputs = with python3.pkgs; [
27     appdirs
28     deltachat
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   };