Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, mashumaro, orjson, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "open-meteo"; version = "0.3.2"; format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "frenck"; repo = "python-open-meteo"; rev = "v${version}"; hash = "sha256-PddQyCCYbI9DjTvlJ4F3IQB6VichwcNhC04DJMULYZM="; };
postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" \ '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp mashumaro orjson ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook ];
disabledTests = [ # aiohttp api breakage "test_timeout" ];
pythonImportsCheck = [ "open_meteo" ];
meta = with lib; { changelog = "https://github.com/frenck/python-open-meteo/releases/tag/v${version}"; description = "Python client for the Open-Meteo API"; homepage = "https://github.com/frenck/python-open-meteo"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}