python3Packages.deltachat: init
This commit is contained in:
parent
51aa52a0aa
commit
8a6ad02d46
59
pkgs/development/python-modules/deltachat/default.nix
Normal file
59
pkgs/development/python-modules/deltachat/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, isPy27
|
||||||
|
, fetchpatch
|
||||||
|
, setuptools-scm
|
||||||
|
, libdeltachat
|
||||||
|
, cffi
|
||||||
|
, IMAPClient
|
||||||
|
, pluggy
|
||||||
|
, requests
|
||||||
|
, setuptools
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "deltachat";
|
||||||
|
inherit (libdeltachat) version src;
|
||||||
|
sourceRoot = "${src.name}/python";
|
||||||
|
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libdeltachat
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
cffi
|
||||||
|
IMAPClient
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1743,6 +1743,8 @@ in {
|
||||||
|
|
||||||
delegator-py = callPackage ../development/python-modules/delegator-py { };
|
delegator-py = callPackage ../development/python-modules/delegator-py { };
|
||||||
|
|
||||||
|
deltachat = callPackage ../development/python-modules/deltachat { };
|
||||||
|
|
||||||
deluge-client = callPackage ../development/python-modules/deluge-client { };
|
deluge-client = callPackage ../development/python-modules/deluge-client { };
|
||||||
|
|
||||||
demjson = callPackage ../development/python-modules/demjson { };
|
demjson = callPackage ../development/python-modules/demjson { };
|
||||||
|
|
Loading…
Reference in a new issue