1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, isodate 7, jsonschema 8, pytest-cov 9, rfc3339-validator 10, six 11, strict-rfc3339 12}: 13 14buildPythonPackage rec { 15 pname = "openapi-schema-validator"; 16 version = "0.3.4"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "p1c2u"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 sha256 = "sha256-0nKAeqZCfzYFsV18BDsSws/54FmRoy7lQSHguI6m3Sc="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ isodate jsonschema six strict-rfc3339 rfc3339-validator ]; 31 32 checkInputs = [ pytestCheckHook pytest-cov ]; 33 pythonImportsCheck = [ "openapi_schema_validator" ]; 34 35 meta = with lib; { 36 description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0"; 37 homepage = "https://github.com/p1c2u/openapi-schema-validator"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ AluisioASG ]; 40 }; 41}