From 119a6ad31c06807a08c308a9b217838b87b77582 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2025 12:28:56 +0100 Subject: [PATCH 1/2] python313Packages.cemm: modernize --- pkgs/development/python-modules/cemm/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/cemm/default.nix b/pkgs/development/python-modules/cemm/default.nix index ff03a97b7c4e..aab393105ed2 100644 --- a/pkgs/development/python-modules/cemm/default.nix +++ b/pkgs/development/python-modules/cemm/default.nix @@ -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"; @@ -62,8 +59,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 ]; }; } From b2605561397a85b757b242da37050bcc7a470e98 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2025 12:40:23 +0100 Subject: [PATCH 2/2] python313Packages.cemm: add patch to replace async_timeout --- pkgs/development/python-modules/cemm/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/cemm/default.nix b/pkgs/development/python-modules/cemm/default.nix index aab393105ed2..70a99ec60f7e 100644 --- a/pkgs/development/python-modules/cemm/default.nix +++ b/pkgs/development/python-modules/cemm/default.nix @@ -31,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 = ''