15 swagger-spec-validator,
18 openapi-spec-validator,
21 buildPythonPackage rec {
23 version = "23.06.21.0";
26 disabled = pythonOlder "3.8";
28 src = fetchFromGitHub {
29 owner = "RonnyPfannschmidt";
31 rev = "refs/tags/v${version}";
32 fetchSubmodules = true;
33 hash = "sha256-p+LZbQal4DPeMp+eJ2O83rCaL+QIUDcU34pZhYdN4bE=";
36 build-system = [ setuptools-scm ];
46 optional-dependencies = {
50 osv = [ openapi-spec-validator ];
51 ssv = [ swagger-spec-validator ];
57 ] ++ lib.flatten (lib.attrValues optional-dependencies);
59 # Disable tests that require network
60 disabledTestPaths = [ "tests/test_convert.py" ];
62 "test_convert_defaults"
65 "test_openapi_spec_validator_validate_failure"
67 pythonImportsCheck = [ "prance" ];
70 description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
71 homepage = "https://github.com/RonnyPfannschmidt/prance";
72 changelog = "https://github.com/RonnyPfannschmidt/prance/blob/${src.rev}/CHANGES.rst";
73 license = licenses.mit;
75 mainProgram = "prance";