Files
nixpkgs/pkgs/development/python-modules/deltachat/default.nix
T
Martin Weinelt 8056f9250c treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

62 lines
981 B
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
];
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";
};
}