1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 aiohttp, 7 yarl, 8 mashumaro, 9 orjson, 10 pytestCheckHook, 11 pytest-asyncio, 12 pytest-cov-stub, 13 aioresponses, 14 syrupy, 15}: 16 17buildPythonPackage rec { 18 pname = "python-open-router"; 19 version = "0.3.1"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "joostlek"; 24 repo = "python-open-router"; 25 tag = "v${version}"; 26 hash = "sha256-EoLBlgXKrAo2DKOuLGvN3MbWIJIG+Ehtznegnq3VX44="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 aiohttp 33 yarl 34 mashumaro 35 orjson 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 pytest-asyncio 41 pytest-cov-stub 42 aioresponses 43 syrupy 44 ]; 45 46 pythonImportsCheck = [ "python_open_router" ]; 47 48 meta = { 49 description = "Asynchronous Python client for Open Router"; 50 homepage = "https://github.com/joostlek/python-open-router"; 51 changelog = "https://github.com/joostlek/python-open-router/releases/tag/v${version}"; 52 license = lib.licenses.mit; 53 maintainers = [ lib.maintainers.jamiemagee ]; 54 }; 55}