Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / slixmpp / default.nix
blob82fba525c03726f3d6a86d9ad7f3bebe06003e77
1 { lib
2 , buildPythonPackage
3 , aiodns
4 , aiohttp
5 , fetchPypi
6 , gnupg
7 , pyasn1
8 , pyasn1-modules
9 , pytestCheckHook
10 , substituteAll
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "slixmpp";
16   version = "1.8.5";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-dePwrUhVX39ckijnBmwdQ1izPWQLT753PsNLA7f66aM=";
24   };
26   propagatedBuildInputs = [
27     aiodns
28     aiohttp
29     pyasn1
30     pyasn1-modules
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   patches = [
38     (substituteAll {
39       src = ./hardcode-gnupg-path.patch;
40       inherit gnupg;
41     })
42   ];
44   disabledTestPaths = [
45     # Exclude live tests
46     "tests/live_test.py"
47     "tests/test_xep_0454.py"
48   ];
50   pythonImportsCheck = [
51     "slixmpp"
52   ];
54   meta = with lib; {
55     description = "Python library for XMPP";
56     homepage = "https://slixmpp.readthedocs.io/";
57     changelog = "https://codeberg.org/poezio/slixmpp/releases/tag/slix-${version}";
58     license = licenses.mit;
59     maintainers = with maintainers; [ fab ];
60   };