mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
python311Packages.deltachat2: init at 0.6.2
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Robert Schütz <nix@dotlambda.de>
(cherry picked from commit 935eb15442
)
This commit is contained in:
parent
b7fd868c2e
commit
f38018a09b
42
pkgs/development/python-modules/deltachat2/default.nix
Normal file
42
pkgs/development/python-modules/deltachat2/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
13
pkgs/development/python-modules/deltachat2/paths.patch
Normal file
13
pkgs/development/python-modules/deltachat2/paths.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/deltachat2/transport.py b/deltachat2/transport.py
|
||||
index a93dc7e..251947b 100644
|
||||
--- a/deltachat2/transport.py
|
||||
+++ b/deltachat2/transport.py
|
||||
@@ -71,7 +71,7 @@ class IOTransport:
|
||||
# `process_group` is not supported before Python 3.11.
|
||||
kwargs = {"preexec_fn": os.setpgrp, **self._kwargs} # noqa: PLW1509
|
||||
self.process = subprocess.Popen( # noqa: R1732
|
||||
- "deltachat-rpc-server",
|
||||
+ "@deltachatrpcserver@",
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
**kwargs,
|
@ -2924,6 +2924,8 @@ self: super: with self; {
|
||||
|
||||
deltachat = callPackage ../development/python-modules/deltachat { };
|
||||
|
||||
deltachat2 = callPackage ../development/python-modules/deltachat2 { };
|
||||
|
||||
deluge-client = callPackage ../development/python-modules/deluge-client { };
|
||||
|
||||
demes = callPackage ../development/python-modules/demes { };
|
||||
|
Loading…
Reference in New Issue
Block a user