Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
817 B · 39 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940{ 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 = [ maintainers.ivar ]; license = licenses.bsd3; };}