Unverified Commit 3b48d099 authored by PerchunPak's avatar PerchunPak
Browse files

python3Packages.inject: init at 5.2.1

parent cd43d686
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -6224,6 +6224,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 { };