at 25.11-pre 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 aiohttp, 7 cbor2, 8 pycryptodomex, 9 busypie, 10 pytest-asyncio, 11 pytest-vcr, 12 pytestCheckHook, 13 requests, 14 pythonOlder, 15}: 16 17buildPythonPackage rec { 18 pname = "freenub"; 19 version = "0.1.0"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "bdraco"; 26 repo = "freenub"; 27 tag = "v${version}"; 28 hash = "sha256-UkW/7KUQ4uCu3cxDSL+kw0gjKjs4KnmxRIOLVP4hwyA="; 29 }; 30 31 postPatch = '' 32 sed -i "/--cov/d" pyproject.toml 33 ''; 34 35 build-system = [ poetry-core ]; 36 37 dependencies = [ 38 aiohttp 39 cbor2 40 pycryptodomex 41 requests 42 ]; 43 44 nativeCheckInputs = [ 45 busypie 46 pytest-asyncio 47 pytest-vcr 48 pytestCheckHook 49 ]; 50 51 pythonImportsCheck = [ "pubnub" ]; 52 53 meta = with lib; { 54 description = "Fork of pubnub"; 55 homepage = "https://github.com/bdraco/freenub"; 56 changelog = "https://github.com/bdraco/freenub/blob/${version}/CHANGELOG.md"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}