mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
kin-openapi: init at 0.128.0
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
parent
2ba15d4f55
commit
a88de6ff8c
38
pkgs/by-name/ki/kin-openapi/package.nix
Normal file
38
pkgs/by-name/ki/kin-openapi/package.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "kin-openapi";
|
||||
version = "0.128.0";
|
||||
vendorHash = "sha256-yNS5Rtmxts4uOhMPTXCFRhe/dLPZZAtGKe/bNkOeIBw=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "getkin";
|
||||
repo = "kin-openapi";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-4pYrg75dFFdFS2SC1BvFoHcLFNGgBumXd3Vd7jHvUJg=";
|
||||
};
|
||||
|
||||
checkFlags =
|
||||
let
|
||||
# Skip tests that require network access
|
||||
skippedTests = [
|
||||
"TestExtraSiblingsInRemoteRef"
|
||||
"TestIssue495WithDraft04"
|
||||
];
|
||||
in
|
||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||
|
||||
subPackages = [ "cmd/validate" ];
|
||||
|
||||
meta = {
|
||||
mainProgram = "validate";
|
||||
description = "Command line tool to validation openapi3 documents";
|
||||
homepage = "https://github.com/getkin/kin-openapi";
|
||||
changelog = "https://github.com/getkin/kin-openapi/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers._6543 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue