2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2021-05-03 20:48:10 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, isodate
|
|
|
|
, jsonschema
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2021-05-03 20:48:10 +00:00
|
|
|
, rfc3339-validator
|
|
|
|
, six
|
|
|
|
, strict-rfc3339
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openapi-schema-validator";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.3.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p1c2u";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-Ms00nR3dpJ0hGtHvVa5B29dasYtBP8igxrgMm0NiArc=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
propagatedBuildInputs = [ isodate jsonschema six strict-rfc3339 rfc3339-validator ];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov ];
|
2021-05-03 20:48:10 +00:00
|
|
|
pythonImportsCheck = [ "openapi_schema_validator" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0";
|
|
|
|
homepage = "https://github.com/p1c2u/openapi-schema-validator";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ AluisioASG ];
|
|
|
|
};
|
|
|
|
}
|