14 , openapi-schema-validator
20 buildPythonPackage rec {
21 pname = "openapi-spec-validator";
25 disabled = pythonOlder "3.8";
27 # no tests via pypi sdist
28 src = fetchFromGitHub {
29 owner = "python-openapi";
30 repo = "openapi-spec-validator";
31 rev = "refs/tags/${version}";
32 hash = "sha256-X0ePdHQeBSWjsCFQgCoNloQZRhKbvPBE43aavBppvmg=";
36 sed -i '/--cov/d' pyproject.toml
43 propagatedBuildInputs = [
47 openapi-schema-validator
48 ] ++ lib.optionals (pythonOlder "3.9") [
63 pythonImportsCheck = [
64 "openapi_spec_validator"
65 "openapi_spec_validator.readers"
69 changelog = "https://github.com/p1c2u/openapi-spec-validator/releases/tag/${version}";
70 description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification";
71 mainProgram = "openapi-spec-validator";
72 homepage = "https://github.com/p1c2u/openapi-spec-validator";
73 license = licenses.asl20;