Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 63 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pydantic, pytest-asyncio, pytestCheckHook, pythonOlder, yarl}:
buildPythonPackage rec { pname = "python-opensky"; version = "0.0.10"; format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "joostlek"; repo = "python-opensky"; rev = "refs/tags/v${version}"; hash = "sha256-QhcnbFp37gj1/37OlRxnQnIhgyNi/D19PXRh5hagHvE="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace 'version = "0.0.0"' 'version = "${version}"' \ --replace "--cov" "" substituteInPlace src/python_opensky/opensky.py \ --replace ".joinpath(uri)" "/ uri" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp pydantic yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "python_opensky" ];
meta = with lib; { description = "Asynchronous Python client for the OpenSky API"; homepage = "https://github.com/joostlek/python-opensky"; changelog = "https://github.com/joostlek/python-opensky/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}