Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, awesomeversion, buildPythonPackage, envoy-utils, fetchFromGitHub, httpx, lxml, orjson, poetry-core, pyjwt, pytest-asyncio, pytestCheckHook, pythonOlder, respx, syrupy, tenacity}:
buildPythonPackage rec { pname = "pyenphase"; version = "1.17.0"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "pyenphase"; repo = "pyenphase"; rev = "refs/tags/v${version}"; hash = "sha256-GNyhUk2/CSSdigrAJ0T2F1+49PkyPxMaec3nO9/cmNo="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=pyenphase --cov-report=term-missing:skip-covered" "" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ awesomeversion envoy-utils httpx lxml orjson pyjwt tenacity ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook respx syrupy ];
disabledTests = [ # https://github.com/pyenphase/pyenphase/issues/97 "test_with_7_x_firmware" ];
pythonImportsCheck = [ "pyenphase" ];
meta = with lib; { description = "Library to control enphase envoy"; homepage = "https://github.com/pyenphase/pyenphase"; changelog = "https://github.com/pyenphase/pyenphase/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}