13 buildPythonPackage rec {
14 pname = "omnikinverter";
18 disabled = pythonOlder "3.11";
20 src = fetchFromGitHub {
21 owner = "klaasnicolaas";
22 repo = "python-omnikinverter";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-W9VeRhsCXLLgOgvJcNNCGNmPvakPtKHAtwQAGtYJbcY=";
27 __darwinAllowLocalNetworking = true;
30 # Upstream doesn't set a version for the pyproject.toml
31 substituteInPlace pyproject.toml \
32 --replace "0.0.0" "${version}" \
40 propagatedBuildInputs = [
51 pythonImportsCheck = [
56 description = "Python module for the Omnik Inverter";
57 homepage = "https://github.com/klaasnicolaas/python-omnikinverter";
58 changelog = "https://github.com/klaasnicolaas/python-omnikinverter/releases/tag/v${version}";
59 license = with licenses; [ mit ];
60 maintainers = with maintainers; [ fab ];