diff --git a/pkgs/development/python-modules/cemm/default.nix b/pkgs/development/python-modules/cemm/default.nix index ff03a97b7c4e..70a99ec60f7e 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"; @@ -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 ]; }; }