2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, isPy27, fetchPypi
|
2021-05-03 20:48:10 +00:00
|
|
|
, jsonschema, openapi-schema-validator, pyyaml, six, pathlib
|
2021-07-24 12:14:16 +00:00
|
|
|
, mock, pytest, pytest-cov, pytest-flake8, tox, setuptools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openapi-spec-validator";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "3d70e6592754799f7e77a45b98c6a91706bdd309a425169d17d8e92173e198a2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ (lib.optionals (isPy27) [ pathlib ]);
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ mock pytest pytest-cov pytest-flake8 tox ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/p1c2u/openapi-spec-validator";
|
|
|
|
description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|