2021-06-28 23:13:55 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, typing-extensions }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "injector";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.20.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-hmG0mi+DCc5h46aoK3rLXiJcS96OF9FhDIk6Zw3/Ijo=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
|
|
|
|
|
|
doCheck = false; # No tests are available
|
|
|
|
pythonImportsCheck = [ "injector" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python dependency injection framework, inspired by Guice";
|
|
|
|
homepage = "https://github.com/alecthomas/injector";
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|