Merge pull request #62661 from vanschelven/swagger-spec-validator

pythonPackages.swagger-spec-validator: init at 2.4.3
This commit is contained in:
worldofpeace 2019-07-11 08:28:36 -04:00 committed by GitHub
commit e4947358d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytest, mock }:
buildPythonPackage rec {
pname = "swagger-spec-validator";
version = "2.4.3";
src = fetchFromGitHub {
owner = "Yelp";
repo = "swagger_spec_validator";
rev = "v" + version;
sha256 = "02f8amc6iq2clxxmrz8hirbb57sizaxijp0higqy16shk63ibalw";
};
checkInputs = [
pytest
mock
];
checkPhase = ''
pytest tests
'';
propagatedBuildInputs = [
pyyaml
jsonschema
six
];
meta = with lib; {
homepage = "https://github.com/Yelp/swagger_spec_validator";
license = licenses.asl20;
description = "Validation of Swagger specifications";
maintainers = with maintainers; [ vanschelven ];
};
}

View File

@ -4900,6 +4900,8 @@ in {
svgwrite = callPackage ../development/python-modules/svgwrite { };
swagger-spec-validator = callPackage ../development/python-modules/swagger-spec-validator { };
freezegun = callPackage ../development/python-modules/freezegun { };
taskw = callPackage ../development/python-modules/taskw { };