fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
54 lines
933 B
Nix
54 lines
933 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
pkg-config,
|
|
pkgconfig,
|
|
setuptools-scm,
|
|
libdeltachat,
|
|
cffi,
|
|
imap-tools,
|
|
requests,
|
|
pluggy,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deltachat";
|
|
inherit (libdeltachat) version src;
|
|
sourceRoot = "${src.name}/python";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
pyproject = true;
|
|
|
|
nativeBuildInputs = [
|
|
cffi
|
|
pkg-config
|
|
pkgconfig
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [ libdeltachat ];
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
imap-tools
|
|
pluggy
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"deltachat"
|
|
"deltachat.account"
|
|
"deltachat.contact"
|
|
"deltachat.chat"
|
|
"deltachat.message"
|
|
];
|
|
|
|
meta = libdeltachat.meta // {
|
|
description = "Python bindings for the Delta Chat Core library";
|
|
homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python";
|
|
};
|
|
}
|