2019-10-07 16:20:23 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytest, mock, isPy3k }:
|
2019-05-17 13:15:23 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "swagger-spec-validator";
|
2020-02-25 13:11:41 +00:00
|
|
|
version = "2.5.0";
|
2019-05-17 13:15:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yelp";
|
|
|
|
repo = "swagger_spec_validator";
|
|
|
|
rev = "v" + version;
|
2020-02-25 13:11:41 +00:00
|
|
|
sha256 = "0qlkiyncdh7cdyjvnwjpv9i7y75ghwnpyqkkpfaa8hg698na13pw";
|
2019-05-17 13:15:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|