Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, pythonOlder, yarl,}:
buildPythonPackage rec { pname = "omnikinverter"; version = "1.0.0"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-omnikinverter"; tag = "v${version}"; hash = "sha256-W9VeRhsCXLLgOgvJcNNCGNmPvakPtKHAtwQAGtYJbcY="; };
__darwinAllowLocalNetworking = true;
postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook ];
pythonImportsCheck = [ "omnikinverter" ];
meta = with lib; { description = "Python module for the Omnik Inverter"; homepage = "https://github.com/klaasnicolaas/python-omnikinverter"; changelog = "https://github.com/klaasnicolaas/python-omnikinverter/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}