@@ -1,27 +1,53 @@
1−{ lib, buildPythonPackage, fetchPypi, isPy3k, six, unittest2, pyyaml, flask }:
2−
3−let
4− testPath =
5− if isPy3k
6− then "test_*_py3.py"
7− else "test_*_py2_py3.py";
8−in
1+{ lib
2+, aiohttp
3+, buildPythonPackage
4+, fastapi
5+, fetchFromGitHub
6+, flask
7+, httpx
8+, mypy-boto3-s3
9+, numpy
10+, scipy
11+, pydantic
12+, pytestCheckHook
13+, pyyaml
14+, six
15+}:
916
1017buildPythonPackage rec {
1118 pname = "dependency-injector";
12− version = "4.31.1";
19+ version = "4.32.2";
1320
14− src = fetchPypi {
15− inherit pname version;
16− sha256 = "b6b28b9571f44d575367c6005ba8aaa9fd2b70310e1c15410925d6f1ee2769ad";
21+ src = fetchFromGitHub {
22+ owner = "ets-labs";
23+ repo = "python-dependency-injector";
24+ rev = version;
25+ sha256 = "1gkkka0hl2hl4axf3gfm58mzv92bg0frr5jikw8g32hd4q4aagcg";
1726 };
1827
19− propagatedBuildInputs = [ six ];
20− checkInputs = [ unittest2 pyyaml flask ];
28+ propagatedBuildInputs = [
29+ six
30+ ];
31+
32+ checkInputs = [
33+ aiohttp
34+ fastapi
35+ flask
36+ httpx
37+ mypy-boto3-s3
38+ numpy
39+ pydantic
40+ scipy
41+ pytestCheckHook
42+ pyyaml
43+ ];
44+
45+ disabledTestPaths = [
46+ # There is no unique identifier to disable the one failing test
47+ "tests/unit/ext/test_aiohttp_py35.py"
48+ ];
2149
22− checkPhase = ''
23− unit2 discover -s tests/unit -p "${testPath}"
24− '';
50+ pythonImportsCheck = [ "dependency_injector" ];
2551
2652 meta = with lib; {
2753 description = "Dependency injection microframework for Python";