Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, mashumaro, orjson, poetry-core, pytest-asyncio, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "open-meteo"; version = "0.3.1"; format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "frenck"; repo = "python-open-meteo"; rev = "v${version}"; hash = "sha256-IB+dfQ4bb4dMYYQUVH9YbP3arvfgt4SooPlOKP3AVI8="; };
postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" \ --replace "--cov" "" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp mashumaro orjson ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ];
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 ]; };}