98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
38 lines
803 B
Nix
38 lines
803 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
pytest-cov,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "injector";
|
|
version = "0.21.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-injector";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-5O4vJSXfYNTrUzmv5XuT9pSUndNSvTZTxfVwiAd+0ck=";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov
|
|
];
|
|
|
|
pythonImportsCheck = [ "injector" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python dependency injection framework, inspired by Guice";
|
|
homepage = "https://github.com/alecthomas/injector";
|
|
maintainers = [ ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|