diff --git a/pkgs/development/python-modules/openapi-schema-validator/default.nix b/pkgs/development/python-modules/openapi-schema-validator/default.nix index 0b2b95c7a625..af544f92e181 100644 --- a/pkgs/development/python-modules/openapi-schema-validator/default.nix +++ b/pkgs/development/python-modules/openapi-schema-validator/default.nix @@ -6,11 +6,17 @@ # build-system poetry-core, - # propagates + # dependencies jsonschema, jsonschema-specifications, + pydantic, + pydantic-settings, + referencing, rfc3339-validator, + # optional-dependencies + regress, + # tests pytestCheckHook, pytest-cov-stub, @@ -18,41 +24,41 @@ buildPythonPackage rec { pname = "openapi-schema-validator"; - version = "0.6.3"; + version = "0.8.1"; pyproject = true; src = fetchFromGitHub { owner = "p1c2u"; repo = "openapi-schema-validator"; tag = version; - hash = "sha256-1Y049W4TbqvKZRwnvPVwyLq6CH6NQDrEfJknuMn8dGo="; + hash = "sha256-XOtSnlJJGEa6pOQDHTFRF0zqNxJIB2VlZvFv5kxwUIM="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ jsonschema jsonschema-specifications + pydantic + pydantic-settings + referencing rfc3339-validator ]; + optional-dependencies = { + ecma-regex = [ regress ]; + }; + nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ]; - disabledTests = [ - # https://github.com/python-openapi/openapi-schema-validator/issues/153 - "test_array_prefixitems_invalid" - ]; - - pytestFlags = [ "-vvv" ]; - pythonImportsCheck = [ "openapi_schema_validator" ]; meta = { changelog = "https://github.com/python-openapi/openapi-schema-validator/releases/tag/${src.tag}"; - description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0"; + description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0 and v3.1"; homepage = "https://github.com/python-openapi/openapi-schema-validator"; license = lib.licenses.bsd3; maintainers = [ ];