at master 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 backoff, 6 buildPythonPackage, 7 certifi, 8 fetchFromGitHub, 9 poetry-core, 10 pytest-aiohttp, 11 pytest-asyncio, 12 pytestCheckHook, 13 pythonOlder, 14}: 15 16buildPythonPackage rec { 17 pname = "pyopenuv"; 18 version = "2023.12.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "bachya"; 25 repo = "pyopenuv"; 26 tag = version; 27 hash = "sha256-r+StbiU77/1dz41tCseleIWjiIvuvRveVgPNr3n4CEY="; 28 }; 29 30 nativeBuildInputs = [ poetry-core ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 backoff 35 certifi 36 ]; 37 38 __darwinAllowLocalNetworking = true; 39 40 nativeCheckInputs = [ 41 aresponses 42 pytest-asyncio 43 pytest-aiohttp 44 pytestCheckHook 45 ]; 46 47 disabledTestPaths = [ 48 # Ignore the examples as they are prefixed with test_ 49 "examples/" 50 ]; 51 52 pythonImportsCheck = [ "pyopenuv" ]; 53 54 meta = with lib; { 55 description = "Python API to retrieve data from openuv.io"; 56 homepage = "https://github.com/bachya/pyopenuv"; 57 changelog = "https://github.com/bachya/pyopenuv/releases/tag/${version}"; 58 license = with licenses; [ mit ]; 59 maintainers = with maintainers; [ fab ]; 60 }; 61}