mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
38 lines
750 B
Nix
38 lines
750 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytest, mock, isPy3k }:
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|
|
|