Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, deltachat-rpc-server 5, libdeltachat 6, setuptools-scm 7, substituteAll 8}: 9 10buildPythonPackage 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}