15 openapi-schema-validator,
21 buildPythonPackage rec {
22 pname = "openapi-spec-validator";
26 disabled = pythonOlder "3.8";
28 # no tests via pypi sdist
29 src = fetchFromGitHub {
30 owner = "python-openapi";
31 repo = "openapi-spec-validator";
33 hash = "sha256-X0ePdHQeBSWjsCFQgCoNloQZRhKbvPBE43aavBppvmg=";
37 sed -i '/--cov/d' pyproject.toml
40 nativeBuildInputs = [ poetry-core ];
42 propagatedBuildInputs = [
46 openapi-schema-validator
47 ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
49 nativeCheckInputs = [ pytestCheckHook ];
58 pythonImportsCheck = [
59 "openapi_spec_validator"
60 "openapi_spec_validator.readers"
64 changelog = "https://github.com/p1c2u/openapi-spec-validator/releases/tag/${version}";
65 description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification";
66 mainProgram = "openapi-spec-validator";
67 homepage = "https://github.com/p1c2u/openapi-spec-validator";
68 license = licenses.asl20;