mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
5d41ee3bf7
Diff: https://github.com/pyenphase/pyenphase/compare/refs/tags/v1.11.4...v1.12.0 Changelog: https://github.com/pyenphase/pyenphase/blob/1.12.0/CHANGELOG.md
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{ 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.12.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyenphase";
|
|
repo = "pyenphase";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-gqbRz0JAp8hjZpFUzlFzqq86UKgD0TLWSp1Z9rdrk3s=";
|
|
};
|
|
|
|
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/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|