1{ lib 2, buildPythonPackage 3, pythonOlder 4, pkg-config 5, pkgconfig 6, setuptools-scm 7, wheel 8, libdeltachat 9, cffi 10, imap-tools 11, requests 12, pluggy 13, setuptools 14, pytestCheckHook 15}: 16 17buildPythonPackage rec { 18 pname = "deltachat"; 19 inherit (libdeltachat) version src; 20 sourceRoot = "${src.name}/python"; 21 22 disabled = pythonOlder "3.7"; 23 format = "pyproject"; 24 25 nativeBuildInputs = [ 26 cffi 27 pkg-config 28 pkgconfig 29 setuptools 30 setuptools-scm 31 wheel 32 ]; 33 34 SETUPTOOLS_SCM_PRETEND_VERSION = version; 35 36 buildInputs = [ 37 libdeltachat 38 ]; 39 40 propagatedBuildInputs = [ 41 cffi 42 imap-tools 43 pluggy 44 requests 45 ]; 46 47 nativeCheckInputs = [ 48 pytestCheckHook 49 ]; 50 51 pythonImportsCheck = [ 52 "deltachat" 53 "deltachat.account" 54 "deltachat.contact" 55 "deltachat.chat" 56 "deltachat.message" 57 ]; 58 59 meta = libdeltachat.meta // { 60 description = "Python bindings for the Delta Chat Core library"; 61 homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python"; 62 }; 63}