at 23.05-pre 1.0 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, cbor2 5, fetchFromGitHub 6, pycryptodomex 7, pytestCheckHook 8, pytest-vcr 9, pytest-asyncio 10, requests 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "pubnub"; 16 version = "7.0.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = pname; 23 repo = "python"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-rOpTPj9g9WKc8MLX4HqsZit7yvTtDqha7ImewW/tH7g="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 cbor2 31 pycryptodomex 32 requests 33 ]; 34 35 checkInputs = [ 36 pytest-asyncio 37 pytest-vcr 38 pytestCheckHook 39 ]; 40 41 disabledTestPaths = [ 42 # Tests require network access 43 "tests/integrational" 44 "tests/manual" 45 "tests/functional/push" 46 ]; 47 48 pythonImportsCheck = [ 49 "pubnub" 50 ]; 51 52 meta = with lib; { 53 description = "Python-based APIs for PubNub"; 54 homepage = "https://github.com/pubnub/python"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}