nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 31 lines 952 B view raw
1{ lib, buildPythonPackage, isPy27, fetchPypi 2, jsonschema, openapi-schema-validator, pyyaml, six, pathlib 3, mock, pytest, pytest-cov, pytest-flake8, tox, setuptools 4, poetry-core 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "openapi-spec-validator"; 10 version = "0.4.0"; 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-l/JYhQr8l7BI98JlOFXg+I+masEDwr5Qd8eWCsoq1Jo="; 16 }; 17 18 nativeBuildInputs = [ poetry-core ]; 19 20 propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools requests ] 21 ++ (lib.optionals (isPy27) [ pathlib ]); 22 23 checkInputs = [ mock pytest pytest-cov pytest-flake8 tox ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/p1c2u/openapi-spec-validator"; 27 description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ rvl ]; 30 }; 31}