Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
803 B · 38 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, typing-extensions, pytestCheckHook, pytest-cov-stub,}:
buildPythonPackage rec { pname = "injector"; version = "0.21.0"; format = "setuptools";
src = fetchFromGitHub { owner = "python-injector"; repo = "injector"; tag = version; hash = "sha256-5O4vJSXfYNTrUzmv5XuT9pSUndNSvTZTxfVwiAd+0ck="; };
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ typing-extensions ];
nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ];
pythonImportsCheck = [ "injector" ];
meta = with lib; { description = "Python dependency injection framework, inspired by Guice"; homepage = "https://github.com/alecthomas/injector"; maintainers = [ ]; license = licenses.bsd3; };}