depot/pkgs/by-name/ki/kin-openapi/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
990 B
Nix

{
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 ];
};
}