Skip to content

Commit

Permalink
Merge: python310Packages.openapi-core: 0.17.1 -> 0.18.0
Browse files Browse the repository at this point in the history
...into staging-next.  Taken from PR #247814
  • Loading branch information
vcunat committed Aug 8, 2023
2 parents 3280523 + f734720 commit dc11c1a
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions pkgs/development/python-modules/openapi-core/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ lib
, aiohttp
, asgiref
, buildPythonPackage
, django
, djangorestframework
Expand All @@ -7,36 +9,35 @@
, flask
, httpx
, isodate
, jsonschema
, jsonschema-spec
, mock
, more-itertools
, openapi-schema-validator
, openapi-spec-validator
, parse
, pathable
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, responses
, requests
, starlette
, typing-extensions
, webob
, werkzeug
}:

buildPythonPackage rec {
pname = "openapi-core";
version = "0.17.1";
version = "0.18.0";
format = "pyproject";

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "p1c2u";
repo = "openapi-core";
rev = "refs/tags/${version}";
hash = "sha256-xlrG2FF55qDsrkdSqCBLu3/QLtZs48ZUB90B2CemY64=";
hash = "sha256-2OcGaZQwzgxcwrXinmJjFc91620Ri0O79c8WZWfDdlQ=";
};

postPatch = ''
Expand All @@ -50,17 +51,19 @@ buildPythonPackage rec {
propagatedBuildInputs = [
isodate
more-itertools
pathable
more-itertools
parse
openapi-schema-validator
jsonschema-spec
openapi-spec-validator
typing-extensions
parse
werkzeug
jsonschema-spec
asgiref
jsonschema
];

passthru.optional-dependencies = {
aiohttp = [
aiohttp
];
django = [
django
];
Expand All @@ -80,7 +83,7 @@ buildPythonPackage rec {
};

nativeCheckInputs = [
mock
pytest-aiohttp
pytestCheckHook
responses
webob
Expand Down

0 comments on commit dc11c1a

Please sign in to comment.