python3Packages.inject: init at 5.2.1 (#356609)

This commit is contained in:
Pol Dellaiera 2024-11-23 08:13:59 +01:00 committed by GitHub
commit 3fa87fea66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
lib,
nix-update-script,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "inject";
version = "5.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ivankorobkov";
repo = "python-inject";
rev = "refs/tags/v${version}";
hash = "sha256-Ws296ESjb+a322imiRRWTS43w32rJc/7Y//OBQXOwnw=";
};
build-system = [
hatchling
hatch-vcs
];
nativeCheckInputs = [
pytestCheckHook
];
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/${version}/CHANGES.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ perchun ];
};
}

View File

@ -6235,6 +6235,8 @@ self: super: with self; {
iniparse = callPackage ../development/python-modules/iniparse { };
inject = callPackage ../development/python-modules/inject { };
injector = callPackage ../development/python-modules/injector { };
inkbird-ble = callPackage ../development/python-modules/inkbird-ble { };