Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 25 lines 865 B view raw
1{ lib, buildPythonPackage, isPy27, fetchPypi 2, jsonschema, openapi-schema-validator, pyyaml, six, pathlib 3, mock, pytest, pytestcov, pytest-flake8, tox, setuptools }: 4 5buildPythonPackage rec { 6 pname = "openapi-spec-validator"; 7 version = "0.3.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "53ba3d884e98ff2062d5ada025aa590541dcd665b8f81067dc82dd61c0923759"; 12 }; 13 14 propagatedBuildInputs = [ jsonschema openapi-schema-validator pyyaml six setuptools ] 15 ++ (lib.optionals (isPy27) [ pathlib ]); 16 17 checkInputs = [ mock pytest pytestcov pytest-flake8 tox ]; 18 19 meta = with lib; { 20 homepage = "https://github.com/p1c2u/openapi-spec-validator"; 21 description = "Validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0.0 specification"; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ rvl ]; 24 }; 25}