depot/third_party/nixpkgs/pkgs/development/python-modules/nbxmpp/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
gobject-introspection,
idna,
libsoup_3,
packaging,
precis-i18n,
pygobject3,
pyopenssl,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "nbxmpp";
version = "5.0.4";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitLab {
domain = "dev.gajim.org";
owner = "gajim";
repo = "python-nbxmpp";
rev = "refs/tags/${version}";
hash = "sha256-5UFhR5WYxHJSRk2G5ik1IuNW1ra/IHoU/LNqiA95R94=";
};
nativeBuildInputs = [
# required for pythonImportsCheck otherwise libsoup cannot be found
gobject-introspection
setuptools
];
buildInputs = [ precis-i18n ];
propagatedBuildInputs = [
gobject-introspection
idna
libsoup_3
packaging
pygobject3
pyopenssl
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nbxmpp" ];
meta = with lib; {
homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
description = "Non-blocking Jabber/XMPP module";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ abbradar ];
};
}