From e95f5c6fa73bed3d4da66e102e05360332b69a5f Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Sun, 29 Mar 2026 07:54:13 -0700 Subject: [PATCH] python3Packages.inject: 5.3.0 -> 5.3.0-unstable-2026-01-05 Bump to upstream master to fix test failures on Python 3.14, where the implicit event loop from asyncio.get_event_loop() was removed. The upstream fix (commit 3d525d0) is not part of any release yet. --- .../development/python-modules/inject/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/inject/default.nix b/pkgs/development/python-modules/inject/default.nix index c2ecb109732e..50e2d5c8352e 100644 --- a/pkgs/development/python-modules/inject/default.nix +++ b/pkgs/development/python-modules/inject/default.nix @@ -4,22 +4,25 @@ hatch-vcs, hatchling, lib, - nix-update-script, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "inject"; - version = "5.3.0"; + version = "5.3.0-unstable-2026-01-05"; pyproject = true; src = fetchFromGitHub { owner = "ivankorobkov"; repo = "python-inject"; - tag = "v${finalAttrs.version}"; - hash = "sha256-c/OpEsT9KF7285xfD+VRorrNHn3r9IPp/ts9JHyGK9s="; + rev = "2ca60abc5370cd91d87e5a21ac373d0ca710f76d"; + hash = "sha256-FumossBUGwp1XxWthx3gpIietvZsmPpkd52y9jjVKjQ="; }; + env.SETUPTOOLS_SCM_PRETEND_VERSION = + assert lib.hasInfix "unstable" finalAttrs.version; + builtins.head (lib.splitString "-" finalAttrs.version); + build-system = [ hatchling hatch-vcs @@ -31,12 +34,10 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "inject" ]; - passthru.updateScript = nix-update-script { }; - meta = { description = "Python dependency injection framework"; homepage = "https://github.com/ivankorobkov/python-inject"; - changelog = "https://github.com/ivankorobkov/python-inject/blob/${finalAttrs.src.tag}/CHANGES.md"; + changelog = "https://github.com/ivankorobkov/python-inject/blob/${finalAttrs.src.rev}/CHANGES.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ PerchunPak ]; };