Files
nixpkgs/pkgs/development/python-modules/injector/default.nix
T
2026-01-19 10:31:51 +01:00

35 lines
677 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "injector";
version = "0.22.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "python-injector";
repo = "injector";
tag = version;
hash = "sha256-FRO/stQDTa4W1f6mLPDCJslYFfIvgS0EgoEhuh0rxwA=";
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "injector" ];
meta = {
description = "Python dependency injection framework, inspired by Guice";
homepage = "https://github.com/alecthomas/injector";
maintainers = [ ];
license = lib.licenses.bsd3;
};
}