14 buildPythonPackage rec {
15 pname = "zeversolarlocal";
19 disabled = pythonOlder "3.7";
22 inherit pname version;
23 sha256 = "ExZy5k5RE7k+D0lGmuIkGWrWQ+m24K2oqbUEg4BAVuY=";
31 propagatedBuildInputs = [
41 # the patch below won't apply unless we fix the line endings
43 dos2unix pyproject.toml
47 # Raise the flit-core limit
48 # https://github.com/sander76/zeversolarlocal/pull/4
50 url = "https://github.com/sander76/zeversolarlocal/commit/bff072ea046de07eced77bc79eb8e90dfef1f53f.patch";
51 hash = "sha256-tzFCwPzhAfwVfN5mLY/DMwRv7zGzx3ScBe+kKzkYcvo=";
56 substituteInPlace pyproject.toml \
57 --replace "--cov zeversolarlocal --cov-report xml:cov.xml --cov-report term-missing -vv" ""
61 # Test requires network access
65 pythonImportsCheck = [
70 description = "Python module to interact with Zeversolar inverters";
71 homepage = "https://github.com/sander76/zeversolarlocal";
72 license = licenses.mit;
73 maintainers = with maintainers; [ fab ];