depot/third_party/nixpkgs/pkgs/development/python-modules/deltachat2/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
876 B
Nix

{ 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;
};
}