nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 980 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6buildGoModule rec { 7 pname = "kin-openapi"; 8 version = "0.133.0"; 9 vendorHash = "sha256-SFT4mY0TVUa/hMMe7sOVToSX8qA1OimOiNs4kBjRdBU="; 10 11 src = fetchFromGitHub { 12 owner = "getkin"; 13 repo = "kin-openapi"; 14 tag = "v${version}"; 15 hash = "sha256-7KC+cHdI3zArJbSMfao8JIb3sUZJK1PQfrIiFI0zHM8="; 16 }; 17 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}$" ]; 27 28 subPackages = [ "cmd/validate" ]; 29 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 }; 38}