1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pydantic, 9 pytest-asyncio, 10 pytest-cov-stub, 11 pytestCheckHook, 12 pythonOlder, 13 syrupy, 14 yarl, 15}: 16 17buildPythonPackage rec { 18 pname = "python-opensky"; 19 version = "1.0.1"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.11"; 23 24 src = fetchFromGitHub { 25 owner = "joostlek"; 26 repo = "python-opensky"; 27 tag = "v${version}"; 28 hash = "sha256-V6iRwWzCnPCvu8eks2sHPYrX3OmaFnNj+i57kQJKYm0="; 29 }; 30 31 postPatch = '' 32 substituteInPlace pyproject.toml \ 33 --replace 'version = "0.0.0"' 'version = "${version}"' 34 substituteInPlace src/python_opensky/opensky.py \ 35 --replace ".joinpath(uri)" "/ uri" 36 ''; 37 38 nativeBuildInputs = [ poetry-core ]; 39 40 propagatedBuildInputs = [ 41 aiohttp 42 pydantic 43 yarl 44 ]; 45 46 nativeCheckInputs = [ 47 aresponses 48 pytest-asyncio 49 pytest-cov-stub 50 pytestCheckHook 51 syrupy 52 ]; 53 54 pythonImportsCheck = [ "python_opensky" ]; 55 56 meta = with lib; { 57 description = "Asynchronous Python client for the OpenSky API"; 58 homepage = "https://github.com/joostlek/python-opensky"; 59 changelog = "https://github.com/joostlek/python-opensky/releases/tag/v${version}"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}