2019-07-19 08:23:41 +01:00
|
|
|
{ lib, buildPythonPackage, isPy27, fetchPypi
|
|
|
|
, jsonschema, pyyaml, six, pathlib
|
2020-02-14 17:48:20 +00:00
|
|
|
, mock, pytest, pytestcov, pytest-flake8, tox, setuptools }:
|
2019-07-19 08:23:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openapi-spec-validator";
|
2020-07-29 18:23:11 +01:00
|
|
|
version = "0.2.9";
|
2019-07-19 08:23:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-29 18:23:11 +01:00
|
|
|
sha256 = "1jw59mmd3n1d5zihdqz2a3j2axxf3m34lqp1190fw8rlndlilf3r";
|
2019-07-19 08:23:41 +01:00
|
|
|
};
|
|
|
|
|
2020-02-14 17:48:20 +00:00
|
|
|
propagatedBuildInputs = [ jsonschema pyyaml six setuptools ]
|
2019-07-19 08:23:41 +01:00
|
|
|
++ (lib.optionals (isPy27) [ pathlib ]);
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest pytestcov pytest-flake8 tox ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/p1c2u/openapi-spec-validator";
|
2019-07-19 08:23:41 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|