blob: 1f15e496f5cc4455ef15a1d5e52828c2b41e567b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ 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;
};
}
|