1{ lib
2, aiohttp
3, buildPythonPackage
4, cbor2
5, fetchFromGitHub
6, pycryptodomex
7, pytestCheckHook
8, pytest-vcr
9, pytest-asyncio
10, requests
11, six
12}:
13
14buildPythonPackage rec {
15 pname = "pubnub";
16 version = "5.4.0";
17
18 src = fetchFromGitHub {
19 owner = pname;
20 repo = "python";
21 rev = "v${version}";
22 sha256 = "sha256-FyDsTqDQTI/Xxu4Sl4eHqwmgwN+ip+8WKGJs/h/kl2Y=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 cbor2
28 pycryptodomex
29 requests
30 six
31 ];
32
33 checkInputs = [
34 pytest-asyncio
35 pytestCheckHook
36 pytest-vcr
37 ];
38
39 # Some tests don't pass with recent releases of twisted
40 disabledTestPaths = [
41 "tests/integrational"
42 "tests/manual/asyncio"
43 ];
44
45 pythonImportsCheck = [ "pubnub" ];
46
47 meta = with lib; {
48 description = "Python-based APIs for PubNub";
49 homepage = "https://github.com/pubnub/python";
50 license = with licenses; [ mit ];
51 maintainers = with maintainers; [ fab ];
52 };
53}