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