biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pubnub / default.nix
blob66ada4405dbb674b7bd92515dbfffcc440eabd33
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   busypie,
6   cbor2,
7   fetchFromGitHub,
8   pycryptodomex,
9   pytestCheckHook,
10   pytest-vcr,
11   pytest-asyncio,
12   requests,
13   pythonOlder,
14   setuptools,
17 buildPythonPackage rec {
18   pname = "pubnub";
19   version = "9.0.0";
20   pyproject = true;
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitHub {
25     owner = "pubnub";
26     repo = "python";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-v3tFbq2YvQJRvRu9+8yzWLkFo+7AMsJDlqjMK2Q/FAE=";
29   };
31   build-system = [ setuptools ];
33   dependencies = [
34     aiohttp
35     cbor2
36     pycryptodomex
37     requests
38   ];
40   nativeCheckInputs = [
41     busypie
42     pytest-asyncio
43     pytest-vcr
44     pytestCheckHook
45   ];
47   disabledTestPaths = [
48     # Tests require network access
49     "tests/integrational"
50     "tests/manual"
51     "tests/functional/push"
52   ];
54   disabledTests = [
55     "test_subscribe"
56     "test_handshaking"
57   ];
59   pythonImportsCheck = [ "pubnub" ];
61   meta = with lib; {
62     description = "Python-based APIs for PubNub";
63     homepage = "https://github.com/pubnub/python";
64     changelog = "https://github.com/pubnub/python/releases/tag/v${version}";
65     # PubNub Software Development Kit License Agreement
66     # https://github.com/pubnub/python/blob/master/LICENSE
67     license = licenses.unfreeRedistributable;
68     maintainers = with maintainers; [ fab ];
69   };