biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / slixmpp / default.nix
blobe487f91d05a7692bfc329c8699fec65976b102cb
2   lib,
3   buildPythonPackage,
4   aiodns,
5   aiohttp,
6   fetchPypi,
7   gnupg,
8   pyasn1,
9   pyasn1-modules,
10   pytestCheckHook,
11   substituteAll,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "slixmpp";
17   version = "1.8.5";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-dePwrUhVX39ckijnBmwdQ1izPWQLT753PsNLA7f66aM=";
25   };
27   propagatedBuildInputs = [
28     aiodns
29     aiohttp
30     pyasn1
31     pyasn1-modules
32   ];
34   nativeCheckInputs = [ pytestCheckHook ];
36   patches = [
37     (substituteAll {
38       src = ./hardcode-gnupg-path.patch;
39       inherit gnupg;
40     })
41   ];
43   disabledTestPaths = [
44     # Exclude live tests
45     "tests/live_test.py"
46     "tests/test_xep_0454.py"
47   ];
49   pythonImportsCheck = [ "slixmpp" ];
51   meta = with lib; {
52     description = "Python library for XMPP";
53     homepage = "https://slixmpp.readthedocs.io/";
54     changelog = "https://codeberg.org/poezio/slixmpp/releases/tag/slix-${version}";
55     license = licenses.mit;
56     maintainers = with maintainers; [ fab ];
57   };