python3Packages.envoy-reader: allow later httpx releases
This commit is contained in:
parent
f042c47fa2
commit
4c3f9d8b75
@ -2,6 +2,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, envoy-utils
|
, envoy-utils
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, httpx
|
, httpx
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-raises
|
, pytest-raises
|
||||||
@ -12,6 +13,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "envoy-reader";
|
pname = "envoy-reader";
|
||||||
version = "0.20.0";
|
version = "0.20.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jesserizzo";
|
owner = "jesserizzo";
|
||||||
@ -37,7 +39,18 @@ buildPythonPackage rec {
|
|||||||
--replace "pytest-runner>=5.2" ""
|
--replace "pytest-runner>=5.2" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "envoy_reader" ];
|
patches = [
|
||||||
|
# Support for later httpx, https://github.com/jesserizzo/envoy_reader/pull/82
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-later-httpx.patch";
|
||||||
|
url = "https://github.com/jesserizzo/envoy_reader/commit/6019a89419fe9c830ba839be7d39ec54725268b0.patch";
|
||||||
|
sha256 = "17vsrx13rskvh8swvjisb2dk6x1jdbjcm8ikkpidia35pa24h272";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"envoy_reader"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python module to read from Enphase Envoy units";
|
description = "Python module to read from Enphase Envoy units";
|
||||||
|
Loading…
Reference in New Issue
Block a user