mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, pkg-config
|
|
, pkgconfig
|
|
, setuptools-scm
|
|
, libdeltachat
|
|
, cffi
|
|
, imap-tools
|
|
, requests
|
|
, pluggy
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deltachat";
|
|
inherit (libdeltachat) version src;
|
|
sourceRoot = "${src.name}/python";
|
|
|
|
disabled = isPy27;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
pkgconfig
|
|
setuptools-scm
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
buildInputs = [
|
|
libdeltachat
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
imap-tools
|
|
pluggy
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 srapenne ];
|
|
};
|
|
}
|