18 buildPythonPackage rec {
23 disabled = pythonOlder "3.11";
25 src = fetchFromGitHub {
26 owner = "klaasnicolaas";
27 repo = "python-autarco";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-7Q6kvJxhds0myu3pMOLSCJKwoGPzHjNSo8H3ctgFvjM=";
32 pythonRelaxDeps = [ "orjson" ];
35 # Upstream doesn't set a version for the pyproject.toml
36 substituteInPlace pyproject.toml \
37 --replace-fail "0.0.0" "${version}"
40 build-system = [ poetry-core ];
49 __darwinAllowLocalNetworking = true;
59 pythonImportsCheck = [ "autarco" ];
62 description = "Module for the Autarco Inverter";
63 homepage = "https://github.com/klaasnicolaas/python-autarco";
64 changelog = "https://github.com/klaasnicolaas/python-autarco/releases/tag/v${version}";
65 license = licenses.mit;
66 maintainers = with maintainers; [ fab ];