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-05-13 08:49:14 +01:00
|
|
|
version = "4.32.2";
|
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;
|
|
|
|
sha256 = "1gkkka0hl2hl4axf3gfm58mzv92bg0frr5jikw8g32hd4q4aagcg";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|