From a88de6ff8c7a1fd07cafcffa76fba22b690a73ba Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 26 Oct 2024 19:19:06 +0200 Subject: [PATCH] kin-openapi: init at 0.128.0 Co-authored-by: Aleksana --- pkgs/by-name/ki/kin-openapi/package.nix | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/ki/kin-openapi/package.nix diff --git a/pkgs/by-name/ki/kin-openapi/package.nix b/pkgs/by-name/ki/kin-openapi/package.nix new file mode 100644 index 000000000000..6515189f95d2 --- /dev/null +++ b/pkgs/by-name/ki/kin-openapi/package.nix @@ -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 ]; + }; +}