evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ki / kin-openapi / package.nix
blob6515189f95d2ffe3c845fc0279091a35be10afd9
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5 }:
6 buildGoModule rec {
7   pname = "kin-openapi";
8   version = "0.128.0";
9   vendorHash = "sha256-yNS5Rtmxts4uOhMPTXCFRhe/dLPZZAtGKe/bNkOeIBw=";
11   src = fetchFromGitHub {
12     owner = "getkin";
13     repo = "kin-openapi";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-4pYrg75dFFdFS2SC1BvFoHcLFNGgBumXd3Vd7jHvUJg=";
16   };
18   checkFlags =
19     let
20       # Skip tests that require network access
21       skippedTests = [
22         "TestExtraSiblingsInRemoteRef"
23         "TestIssue495WithDraft04"
24       ];
25     in
26     [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
28   subPackages = [ "cmd/validate" ];
30   meta = {
31     mainProgram = "validate";
32     description = "Command line tool to validation openapi3 documents";
33     homepage = "https://github.com/getkin/kin-openapi";
34     changelog = "https://github.com/getkin/kin-openapi/releases/tag/v${version}";
35     license = lib.licenses.mit;
36     maintainers = [ lib.maintainers._6543 ];
37   };