Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / asyncio-mqtt / default.nix
blob309e74ba4cc1b81e5303bae5d0a3327aca737773
1 { lib
2 , anyio
3 , buildPythonPackage
4 , fetchFromGitHub
5 , paho-mqtt
6 , pytestCheckHook
7 , pythonOlder
8 , setuptools
9 , setuptools-scm
10 , typing-extensions
11 , wheel
14 buildPythonPackage rec {
15   pname = "asyncio-mqtt";
16   version = "0.16.1";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "sbtinstruments";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-f3JqocjOEwNjo6Uv17ij6oEdrjb6Z2wTzdhdVhx46iM=";
26   };
28   nativeBuildInputs = [
29     setuptools
30     setuptools-scm
31     wheel
32   ];
34   propagatedBuildInputs = [
35     paho-mqtt
36   ] ++ lib.optionals (pythonOlder "3.10") [
37     typing-extensions
38   ];
40   nativeCheckInputs = [
41     anyio
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [
46     "asyncio_mqtt"
47   ];
49   disabledTests = [
50     # Tests require network access
51     "test_client_filtered_messages"
52     "test_client_logger"
53     "test_client_max_concurrent_outgoing_calls"
54     "test_client_no_pending_calls_warnings_with_max_concurrent_outgoing_calls"
55     "test_client_pending_calls_threshold"
56     "test_client_tls_context"
57     "test_client_tls_params"
58     "test_client_unfiltered_messages"
59     "test_client_unsubscribe"
60     "test_client_username_password "
61     "test_client_websockets"
62     "test_client_will"
63     "test_multiple_messages_generators"
64   ];
66   # newer version are packaged as aiomqtt
67   passthru.skipBulkUpdate = true;
69   meta = with lib; {
70     description = "Idomatic asyncio wrapper around paho-mqtt";
71     homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
72     license = licenses.bsd3;
73     changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/v${version}/CHANGELOG.md";
74     maintainers = with maintainers; [ hexa ];
75   };