blob: d23e2f8b61052c94573cd50767fa4ea8edae1579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
deltachat-rpc-server,
setuptools-scm,
replaceVars,
}:
buildPythonPackage rec {
pname = "deltachat2";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "adbenitez";
repo = "deltachat2";
tag = version;
hash = "sha256-/Q524yoY25kcRNYgFw2k/lJJ3ydVN3hhoaC571nh1cw=";
};
patches = [
(replaceVars ./paths.patch {
deltachatrpcserver = lib.getExe deltachat-rpc-server;
})
];
build-system = [
setuptools-scm
];
pythonImportsCheck = [ "deltachat2" ];
meta = {
description = "Client library for Delta Chat core JSON-RPC interface";
homepage = "https://github.com/adbenitez/deltachat2";
license = lib.licenses.mpl20;
mainProgram = "deltachat2";
inherit (deltachat-rpc-server.meta) maintainers;
};
}
|