python313Packages.cemm: add patch to replace async_timeout (#464239)

This commit is contained in:
Fabian Affolter
2025-11-23 12:15:19 +00:00
committed by GitHub
@@ -9,7 +9,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
yarl,
}:
@@ -18,8 +17,6 @@ buildPythonPackage rec {
version = "0.5.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "python-cemm";
@@ -34,6 +31,12 @@ buildPythonPackage rec {
url = "https://github.com/klaasnicolaas/python-cemm/commit/1e373dac078f18563264e6733baf6a93962cac4b.patch";
hash = "sha256-DVNn4BZwi8yNpKFmzt7YSYhzzB4vaAyrd/My8TtYzj0=";
})
# https://github.com/klaasnicolaas/python-cemm/pull/568
(fetchpatch {
name = "replace-async_timeout.patch";
url = "https://github.com/klaasnicolaas/python-cemm/commit/a818e7ccf196cd5cd4c3e6bf503fb932993281ca.patch";
hash = "sha256-MwPxK+TRZVvf0sS6HS3+CRRY7dDr1qwCCJ+arQ26gWU=";
})
];
postPatch = ''
@@ -62,8 +65,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Module for interacting with CEMM devices";
homepage = "https://github.com/klaasnicolaas/python-cemm";
changelog = "https://github.com/klaasnicolaas/python-cemm/releases/tag/v${version}";
license = with licenses; [ mit ];
changelog = "https://github.com/klaasnicolaas/python-cemm/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}