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