2019-07-19 07:23:41 +00:00
|
|
|
{ lib, buildPythonPackage, isPy27, fetchPypi
|
2021-04-26 21:46:42 +00:00
|
|
|
, jsonschema, openapi-schema-validator, pyyaml, six, pathlib
|
2020-02-14 17:48:20 +00:00
|
|
|
, mock, pytest, pytestcov, pytest-flake8, tox, setuptools }:
|
2019-07-19 07:23:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openapi-spec-validator";
|
2021-03-24 09:28:19 +00:00
|
|
|
version = "0.3.0";
|
2019-07-19 07:23:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:19 +00:00
|
|
|
sha256 = "53ba3d884e98ff2062d5ada025aa590541dcd665b8f81067dc82dd61c0923759";
|
2019-07-19 07:23:41 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 21:46:42 +00:00
|
|
|
propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools ]
|
2019-07-19 07:23:41 +00:00
|
|
|
++ (lib.optionals (isPy27) [ pathlib ]);
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest pytestcov pytest-flake8 tox ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/p1c2u/openapi-spec-validator";
|
2019-07-19 07:23:41 +00:00
|
|
|
description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|