Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 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.1.0"; 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-+g/VBxv0XfqqwTEKtgBAy7Pfakll00JXMFBS2q3pHn8="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 cbor2 31 pycryptodomex 32 requests 33 ]; 34 35 nativeCheckInputs = [ 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 changelog = "https://github.com/pubnub/python/releases/tag/${version}"; 56 license = with licenses; [ mit ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}