python3Packages.dependency-injector: 4.31.1 -> 4.32.2

This commit is contained in:
Fabian Affolter 2021-05-13 09:49:14 +02:00
parent 33faf27e31
commit d8438b875f

View file

@ -1,27 +1,53 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, six, unittest2, pyyaml, flask }: { lib
, aiohttp
let , buildPythonPackage
testPath = , fastapi
if isPy3k , fetchFromGitHub
then "test_*_py3.py" , flask
else "test_*_py2_py3.py"; , httpx
in , mypy-boto3-s3
, numpy
, scipy
, pydantic
, pytestCheckHook
, pyyaml
, six
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dependency-injector"; pname = "dependency-injector";
version = "4.31.1"; version = "4.32.2";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "ets-labs";
sha256 = "b6b28b9571f44d575367c6005ba8aaa9fd2b70310e1c15410925d6f1ee2769ad"; repo = "python-dependency-injector";
rev = version;
sha256 = "1gkkka0hl2hl4axf3gfm58mzv92bg0frr5jikw8g32hd4q4aagcg";
}; };
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [
checkInputs = [ unittest2 pyyaml flask ]; six
];
checkPhase = '' checkInputs = [
unit2 discover -s tests/unit -p "${testPath}" aiohttp
''; fastapi
flask
httpx
mypy-boto3-s3
numpy
pydantic
scipy
pytestCheckHook
pyyaml
];
disabledTestPaths = [
# There is no unique identifier to disable the one failing test
"tests/unit/ext/test_aiohttp_py35.py"
];
pythonImportsCheck = [ "dependency_injector" ];
meta = with lib; { meta = with lib; {
description = "Dependency injection microframework for Python"; description = "Dependency injection microframework for Python";