2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-02-22 10:55:15 +00:00
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
, pkg-config
|
|
|
|
, pkgconfig
|
2021-05-20 23:08:51 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, libdeltachat
|
|
|
|
, cffi
|
2022-04-27 09:35:20 +00:00
|
|
|
, imap-tools
|
2021-05-20 23:08:51 +00:00
|
|
|
, requests
|
2022-04-27 09:35:20 +00:00
|
|
|
, pluggy
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deltachat";
|
|
|
|
inherit (libdeltachat) version src;
|
|
|
|
sourceRoot = "${src.name}/python";
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-02-22 10:55:15 +00:00
|
|
|
cffi
|
2022-04-27 09:35:20 +00:00
|
|
|
pkg-config
|
|
|
|
pkgconfig
|
2021-05-20 23:08:51 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libdeltachat
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
2022-04-27 09:35:20 +00:00
|
|
|
imap-tools
|
2021-05-20 23:08:51 +00:00
|
|
|
pluggy
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"deltachat"
|
|
|
|
"deltachat.account"
|
|
|
|
"deltachat.contact"
|
|
|
|
"deltachat.chat"
|
|
|
|
"deltachat.message"
|
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
meta = libdeltachat.meta // {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Python bindings for the Delta Chat Core library";
|
|
|
|
homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python";
|
|
|
|
};
|
|
|
|
}
|