2021-05-31 23:40:14 +01:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, libnotify
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "deltachat-cursed";
|
2021-08-26 03:36:13 +01:00
|
|
|
version = "0.3.0";
|
2021-05-31 23:40:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adbenitez";
|
|
|
|
repo = "deltachat-cursed";
|
|
|
|
rev = "v${version}";
|
2021-08-26 03:36:13 +01:00
|
|
|
sha256 = "0zzzrzc8yxw6ffwfirbrr5ahbidbvlwdvgdg82zjsdjjbarxph8c";
|
2021-05-31 23:40:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-08-26 03:36:13 +01:00
|
|
|
python3.pkgs.setuptools-scm
|
2021-05-31 23:40:14 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2021-08-26 03:36:13 +01:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2021-05-31 23:40:14 +01:00
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
deltachat
|
2021-08-26 03:36:13 +01:00
|
|
|
notify-py
|
2021-05-31 23:40:14 +01:00
|
|
|
pygobject3
|
|
|
|
urwid-readline
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # no tests implemented
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight Delta Chat client";
|
|
|
|
homepage = "https://github.com/adbenitez/deltachat-cursed";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|