2021-05-13 08:49:14 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fastapi
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, httpx
|
|
|
|
, mypy-boto3-s3
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pydantic
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
}:
|
2018-09-01 16:29:47 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dependency-injector";
|
2021-08-24 19:15:31 +01:00
|
|
|
version = "4.35.3";
|
2018-09-01 16:29:47 +01:00
|
|
|
|
2021-05-13 08:49:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ets-labs";
|
|
|
|
repo = "python-dependency-injector";
|
|
|
|
rev = version;
|
2021-08-24 19:15:31 +01:00
|
|
|
sha256 = "sha256-2qe4A2T3EagNCh1zSbPWblVN7p9NH8rNwQQVyESJTdk=";
|
2018-09-01 16:29:47 +01:00
|
|
|
};
|
|
|
|
|
2021-05-13 08:49:14 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aiohttp
|
|
|
|
fastapi
|
|
|
|
flask
|
|
|
|
httpx
|
|
|
|
mypy-boto3-s3
|
|
|
|
numpy
|
|
|
|
pydantic
|
|
|
|
scipy
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2021-07-07 09:30:01 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "six>=1.7.0,<=1.15.0" "six"
|
|
|
|
'';
|
|
|
|
|
2021-05-13 08:49:14 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# There is no unique identifier to disable the one failing test
|
|
|
|
"tests/unit/ext/test_aiohttp_py35.py"
|
|
|
|
];
|
2018-09-21 19:08:02 +01:00
|
|
|
|
2021-05-13 08:49:14 +01:00
|
|
|
pythonImportsCheck = [ "dependency_injector" ];
|
2018-09-01 16:29:47 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-01 16:29:47 +01:00
|
|
|
description = "Dependency injection microframework for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ets-labs/python-dependency-injector";
|
2018-09-01 16:29:47 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|