14 , swagger-spec-validator
16 , openapi-spec-validator
19 buildPythonPackage rec {
21 version = "23.06.21.0";
24 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
27 owner = "RonnyPfannschmidt";
30 fetchSubmodules = true;
31 hash = "sha256-p+LZbQal4DPeMp+eJ2O83rCaL+QIUDcU34pZhYdN4bE=";
35 substituteInPlace setup.cfg \
36 --replace "--cov=prance --cov-report=term-missing --cov-fail-under=90" ""
39 SETUPTOOLS_SCM_PRETEND_VERSION = version;
45 propagatedBuildInputs = [
53 passthru.optional-dependencies = {
57 osv = [ openapi-spec-validator ];
58 ssv = [ swagger-spec-validator ];
63 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
65 # Disable tests that require network
67 "tests/test_convert.py"
70 "test_convert_defaults"
73 "test_openapi_spec_validator_validate_failure"
75 pythonImportsCheck = [ "prance" ];
78 changelog = "https://github.com/RonnyPfannschmidt/prance/blob/${src.rev}/CHANGES.rst";
79 description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
80 homepage = "https://github.com/RonnyPfannschmidt/prance";
81 license = licenses.mit;