dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
63 lines
1 KiB
Nix
63 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, pkg-config
|
|
, pkgconfig
|
|
, setuptools-scm
|
|
, wheel
|
|
, libdeltachat
|
|
, cffi
|
|
, imap-tools
|
|
, requests
|
|
, pluggy
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deltachat";
|
|
inherit (libdeltachat) version src;
|
|
sourceRoot = "${src.name}/python";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [
|
|
cffi
|
|
pkg-config
|
|
pkgconfig
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
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";
|
|
};
|
|
}
|