nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python311Packages.deltachat2: init at 0.6.2

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Robert Schütz <nix@dotlambda.de>

authored by

Jörg Thalheim
Sandro
Robert Schütz
and committed by
Robert Schütz
935eb154 4ee62639

+57
+42
pkgs/development/python-modules/deltachat2/default.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , deltachat-rpc-server 5 + , libdeltachat 6 + , setuptools-scm 7 + , substituteAll 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "deltachat2"; 12 + version = "0.6.2"; 13 + pyproject = true; 14 + 15 + src = fetchFromGitHub { 16 + owner = "adbenitez"; 17 + repo = "deltachat2"; 18 + rev = "refs/tags/${version}"; 19 + hash = "sha256-bp4bi+EeMaWP8zOaPp0eaPKn71F055QgMOOSDzIJUH4="; 20 + }; 21 + 22 + patches = [ 23 + (substituteAll { 24 + src = ./paths.patch; 25 + deltachatrpcserver = lib.getExe deltachat-rpc-server; 26 + }) 27 + ]; 28 + 29 + build-system = [ 30 + setuptools-scm 31 + ]; 32 + 33 + pythonImportsCheck = [ "deltachat2" ]; 34 + 35 + meta = { 36 + description = "Client library for Delta Chat core JSON-RPC interface"; 37 + homepage = "https://github.com/adbenitez/deltachat2"; 38 + license = lib.licenses.mpl20; 39 + mainProgram = "deltachat2"; 40 + inherit (libdeltachat.meta) maintainers; 41 + }; 42 + }
+13
pkgs/development/python-modules/deltachat2/paths.patch
··· 1 + diff --git a/deltachat2/transport.py b/deltachat2/transport.py 2 + index a93dc7e..251947b 100644 3 + --- a/deltachat2/transport.py 4 + +++ b/deltachat2/transport.py 5 + @@ -71,7 +71,7 @@ class IOTransport: 6 + # `process_group` is not supported before Python 3.11. 7 + kwargs = {"preexec_fn": os.setpgrp, **self._kwargs} # noqa: PLW1509 8 + self.process = subprocess.Popen( # noqa: R1732 9 + - "deltachat-rpc-server", 10 + + "@deltachatrpcserver@", 11 + stdin=subprocess.PIPE, 12 + stdout=subprocess.PIPE, 13 + **kwargs,
+2
pkgs/top-level/python-packages.nix
··· 2944 2944 2945 2945 deltachat = callPackage ../development/python-modules/deltachat { }; 2946 2946 2947 + deltachat2 = callPackage ../development/python-modules/deltachat2 { }; 2948 + 2947 2949 deluge-client = callPackage ../development/python-modules/deluge-client { }; 2948 2950 2949 2951 demes = callPackage ../development/python-modules/demes { };