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.
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user