2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
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
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deltachat";
|
|
|
|
inherit (libdeltachat) version src;
|
|
|
|
sourceRoot = "${src.name}/python";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pkg-config
|
|
|
|
pkgconfig
|
2021-05-20 23:08:51 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libdeltachat
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
2022-04-27 09:35:20 +00:00
|
|
|
imap-tools
|
2021-05-20 23:08:51 +00:00
|
|
|
pluggy
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"deltachat"
|
|
|
|
"deltachat.account"
|
|
|
|
"deltachat.contact"
|
|
|
|
"deltachat.chat"
|
|
|
|
"deltachat.message"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for the Delta Chat Core library";
|
|
|
|
homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python";
|
|
|
|
changelog = "https://github.com/deltachat/deltachat-core-rust/blob/${version}/python/CHANGELOG";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|