Skip to content

Commit

Permalink
python3Packages.inject: init at 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PerchunPak authored and JohnRTitor committed Nov 23, 2024
1 parent d440628 commit b467610
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/inject/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit b467610

Please sign in to comment.