depot/third_party/nixpkgs/pkgs/development/python-modules/swagger-spec-validator/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

33 lines
769 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytestCheckHook, mock }:
buildPythonPackage rec {
pname = "swagger-spec-validator";
version = "2.7.4";
src = fetchFromGitHub {
owner = "Yelp";
repo = "swagger_spec_validator";
rev = "v${version}";
sha256 = "sha256-7+kFmtzeze0QlGf6z/M4J4F7z771a5NWewB1S3+bxn4=";
};
propagatedBuildInputs = [
pyyaml
jsonschema
six
];
checkInputs = [
pytestCheckHook
mock
];
pythonImportsCheck = [ "swagger_spec_validator" ];
meta = with lib; {
homepage = "https://github.com/Yelp/swagger_spec_validator";
license = licenses.asl20;
description = "Validation of Swagger specifications";
maintainers = with maintainers; [ vanschelven ];
};
}