diff options
Diffstat (limited to 'pkgs/development/python-modules/deltachat2/default.nix')
-rw-r--r-- | pkgs/development/python-modules/deltachat2/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/deltachat2/default.nix b/pkgs/development/python-modules/deltachat2/default.nix new file mode 100644 index 0000000000000..78d10679a3079 --- /dev/null +++ b/pkgs/development/python-modules/deltachat2/default.nix @@ -0,0 +1,42 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, deltachat-rpc-server +, libdeltachat +, setuptools-scm +, substituteAll +}: + +buildPythonPackage rec { + pname = "deltachat2"; + version = "0.6.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "adbenitez"; + repo = "deltachat2"; + rev = "refs/tags/${version}"; + hash = "sha256-bp4bi+EeMaWP8zOaPp0eaPKn71F055QgMOOSDzIJUH4="; + }; + + patches = [ + (substituteAll { + src = ./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 (libdeltachat.meta) maintainers; + }; +} |