python3Packages.openapi-core: 0.18.2 -> 0.19.0
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, aioitertools
|
||||
, asgiref
|
||||
, buildPythonPackage
|
||||
, django
|
||||
, djangorestframework
|
||||
, falcon
|
||||
, fastapi
|
||||
, fetchFromGitHub
|
||||
, flask
|
||||
, httpx
|
||||
@@ -12,12 +13,14 @@
|
||||
, jsonschema
|
||||
, jsonschema-spec
|
||||
, more-itertools
|
||||
, multidict
|
||||
, openapi-schema-validator
|
||||
, openapi-spec-validator
|
||||
, parse
|
||||
, poetry-core
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pytest_7
|
||||
, pythonOlder
|
||||
, responses
|
||||
, requests
|
||||
@@ -28,7 +31,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openapi-core";
|
||||
version = "0.18.2";
|
||||
version = "0.19.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -37,7 +40,7 @@ buildPythonPackage rec {
|
||||
owner = "p1c2u";
|
||||
repo = "openapi-core";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-5sNI6ujqDQ5L4afVHYZkm2pKa8yATtHFo7MF3eFF8Ig=";
|
||||
hash = "sha256-+YYcSNX717JjVHMk4Seb145iq9/rQZEVQn27Ulk1A3E=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -63,6 +66,7 @@ buildPythonPackage rec {
|
||||
passthru.optional-dependencies = {
|
||||
aiohttp = [
|
||||
aiohttp
|
||||
multidict
|
||||
];
|
||||
django = [
|
||||
django
|
||||
@@ -70,6 +74,9 @@ buildPythonPackage rec {
|
||||
falcon = [
|
||||
falcon
|
||||
];
|
||||
fastapi = [
|
||||
fastapi
|
||||
];
|
||||
flask = [
|
||||
flask
|
||||
];
|
||||
@@ -77,7 +84,7 @@ buildPythonPackage rec {
|
||||
requests
|
||||
];
|
||||
starlette = [
|
||||
httpx
|
||||
aioitertools
|
||||
starlette
|
||||
];
|
||||
};
|
||||
@@ -85,12 +92,17 @@ buildPythonPackage rec {
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
httpx
|
||||
pytest-aiohttp
|
||||
pytestCheckHook
|
||||
(pytestCheckHook.override { pytest = pytest_7; })
|
||||
responses
|
||||
webob
|
||||
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Requires secrets and additional configuration
|
||||
"tests/integration/contrib/django/"
|
||||
|
||||
Reference in New Issue
Block a user