python314Packages.devolo-plc-api: fix Python 3.14 compat

This commit is contained in:
Sandro Jäckel
2026-03-05 01:31:34 +01:00
committed by Robert Schütz
parent d856dc4ed3
commit e59de77d77
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
httpx,
protobuf,
pytest-asyncio_0,
@@ -27,6 +28,18 @@ buildPythonPackage rec {
hash = "sha256-bmZcjvqZwVJzDsdtSbQvJpry2QSSuB6/jOTWG1+jyV4=";
};
patches = [
# Add Python 3.14 support
(fetchpatch {
url = "https://github.com/2Fake/devolo_plc_api/commit/3b1c167e2df5909910e97bf1626de88b17fb94d1.patch";
hash = "sha256-oaLYMvRl2Zcum9XkFQ1Dm1/F/BhURLGKrwh6FguVL9Y=";
})
(fetchpatch {
url = "https://github.com/2Fake/devolo_plc_api/pull/224.patch";
hash = "sha256-fDGYhjA/tMFKQnEtix1no8Wf+cp9Ph7keXRq1+sH6YA=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "protobuf>=4.22.0" "protobuf"