my-guix/wip/gitea.scm

8977 lines
338 KiB
Scheme
Raw Normal View History

2022-01-03 07:42:31 +01:00
;;; Copyright © 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
2021-12-30 23:18:41 +01:00
;;;
;;; This file is an addendum to GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (wip gitea)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system go)
2022-01-06 08:30:27 +01:00
#:use-module (gnu packages)
2021-12-30 23:18:41 +01:00
#:use-module (gnu packages bash)
#:use-module (gnu packages check)
#:use-module (gnu packages databases)
#:use-module (gnu packages golang)
#:use-module (gnu packages node)
#:use-module (gnu packages syncthing)
#:use-module (gnu packages textutils)
#:use-module (gnu packages version-control))
2022-01-04 08:15:43 +01:00
(define-public go-golang-org-x-crypto-next
(package
(name "go-golang-org-x-crypto")
(version "0.0.0-20211215153901-e495a2d5b3d3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/crypto")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "06xw3x5sf6aq6gxdh24jlhfzi26zpym5jc4g43s63v8gh1fghg6m"))))
(build-system go-build-system)
(arguments
'(#:import-path "golang.org/x/crypto"
#:modules ((guix build go-build-system)
2022-01-05 08:44:11 +01:00
(guix build utils)
2022-01-04 08:15:43 +01:00
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-drop directory 4)))
2022-01-05 08:44:11 +01:00
(find-files "src/golang.org/x/crypto"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "internal"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-04 08:15:43 +01:00
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-drop directory 4)))
2022-01-05 08:44:11 +01:00
(find-files "src/golang.org/x/crypto"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "internal"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-04 08:15:43 +01:00
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.gz$")))))))
(propagated-inputs
(list go-golang-org-x-text-next
go-golang-org-x-term-next
go-golang-org-x-sys-next
go-golang-org-x-net-next))
(home-page "https://golang.org/x/crypto")
(synopsis "Go Cryptography")
(description
"This repository holds supplementary Go cryptography libraries.")
(license license:bsd-3)))
(define-public go-golang-org-x-image-next
(package
(name "go-golang-org-x-image")
(version "0.0.0-20211028202545-6944b10bf410")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/image")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0sjbdd6dxvwpxksw9w7i2f6kg9vrpha9qgi5az5gmy09hwv53f9m"))))
(build-system go-build-system)
(arguments
'(#:import-path "golang.org/x/image"
2022-01-05 08:44:11 +01:00
#:modules ((guix build go-build-system)
(guix build utils)
(srfi srfi-1))
2022-01-04 08:15:43 +01:00
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
2022-01-05 08:44:11 +01:00
#:import-path (string-drop directory 4)))
(find-files "src/golang.org/x/image"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "webp-manual-test"))
(not (string-contains file "example/font"))
(not (string-contains file "font/gofont"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-04 08:15:43 +01:00
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
2022-01-05 08:44:11 +01:00
#:import-path (string-drop directory 4)))
(find-files "src/golang.org/x/image"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "webp-manual-test"))
(not (string-contains file "example/font"))
(not (string-contains file "font/gofont"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t)))))))
2022-01-04 08:15:43 +01:00
(propagated-inputs
(list go-golang-org-x-text-next))
(home-page "https://golang.org/x/image")
(synopsis "Go Images")
(description "This repository holds supplementary Go image libraries.")
(license license:bsd-3)))
(define-public go-golang-org-x-lint-next
(package
(name "go-golang-org-x-lint")
(version "0.0.0-20210508222113-6edffad5e616")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/lint")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1n7lrr3282q3li4f06afms444qy13rfd316za0drqihakwyki2jk"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; Tests fail
#:import-path "golang.org/x/lint"))
(propagated-inputs
(list go-golang-org-x-tools-bootstrap))
(home-page "https://golang.org/x/lint")
(synopsis "Installation")
(description "Package lint contains a linter for Go source code.")
(license license:bsd-3)))
(define-public go-golang-org-x-mod-next
(package
(name "go-golang-org-x-mod")
(version "0.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/mod")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11ck0f35pa91hhxpf98igmj6gg0lms3b3pjm1y7sna1zz52m8f09"))))
(build-system go-build-system)
(arguments
'(#:import-path "golang.org/x/mod"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-append "golang.org/x/mod/" directory)))
(list "gosumcheck"
"modfile"
"module"
"semver"
"sumdb"
"zip"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-append "golang.org/x/mod/" directory)))
(list "gosumcheck"
"modfile"
"module"
"semver"
"sumdb"
"zip")))))))
(propagated-inputs
(list go-golang-org-x-xerrors-next
;go-golang-org-x-tools-next
go-golang-org-x-crypto-next))
(inputs
(list go-golang-org-x-tools-bootstrap))
(home-page "https://golang.org/x/mod")
(synopsis "mod")
(description
"This repository holds packages for writing tools that work directly with Go
module mechanics. That is, it is for direct manipulation of Go modules
themselves.")
(license license:bsd-3)))
(define-public go-golang-org-x-net-next
(package
(name "go-golang-org-x-net")
(version "0.0.0-20211216030914-fe4d6282115f")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/net")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "16p3fqc0nb00gn8csiz5y2416r22yma4mg44f6zp0l7ra0a800qq"))))
(build-system go-build-system)
(arguments
'(#:import-path "golang.org/x/net"
#:modules ((guix build go-build-system)
2022-01-05 08:44:11 +01:00
(guix build utils)
2022-01-04 08:15:43 +01:00
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-drop directory 4)))
2022-01-05 08:44:11 +01:00
(find-files "src/golang.org/x/net"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "net/lif"))
(not (string-contains file "net/route"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-04 08:15:43 +01:00
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-drop directory 4)))
2022-01-05 08:44:11 +01:00
(find-files "src/golang.org/x/net"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "net/lif"))
(not (string-contains file "net/route"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t)))))))
2022-01-04 08:15:43 +01:00
(propagated-inputs
(list go-golang-org-x-text-next
go-golang-org-x-term-next
go-golang-org-x-sys-next))
(home-page "https://golang.org/x/net")
(synopsis "Go Networking")
(description
"This repository holds supplementary Go networking libraries.")
(license license:bsd-3)))
2022-01-03 07:42:31 +01:00
(define-public go-golang-org-x-sys-next
(package
(name "go-golang-org-x-sys")
(version "0.0.0-20211216021012-1d35b9e2eb4e")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/sys")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "09xmnw6hhpqnakm99xxigg0znbx46f084lpacz67p5rbcdngjxis"))))
(build-system go-build-system)
(arguments
'(#:import-path "golang.org/x/sys"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-append "golang.org/x/sys/" directory)))
(list "cpu"
"execabs"
"unix"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-append "golang.org/x/sys/" directory)))
(list "cpu"
"execabs"
"unix")))))))
(home-page "https://golang.org/x/sys")
(synopsis "sys")
(description
"This repository holds supplemental Go packages for low-level interactions with
the operating system.")
(license license:bsd-3)))
2022-01-04 08:15:43 +01:00
(define-public go-golang-org-x-sync-next
(package
(name "go-golang-org-x-sync")
(version "0.0.0-20210220032951-036812b2e83c")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/sync")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1gl202py3s4gl6arkaxlf8qa6f0jyyg2f95m6f89qnfmr416h85b"))))
(build-system go-build-system)
(arguments
'(#:import-path "golang.org/x/sync"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-append "golang.org/x/sync/" directory)))
(list "errgroup"
"semaphore"
"singleflight"
"syncmap"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-append "golang.org/x/sync/" directory)))
(list "errgroup"
"semaphore"
"singleflight"
"syncmap")))))))
(home-page "https://golang.org/x/sync")
(synopsis "Go Sync")
(description
"This repository provides Go concurrency primitives in addition to the ones
provided by the language and \"sync\" and \"sync/atomic\" packages.")
(license license:bsd-3)))
(define-public go-golang-org-x-term-next
(package
(name "go-golang-org-x-term")
(version "0.0.0-20210927222741-03fcf44c2211")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/term")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0aw5lgwq5w5kvwfa3jl7l83p9c827ksy4a99dqzzsqxvmk2zdi8f"))))
(build-system go-build-system)
(arguments '(#:import-path "golang.org/x/term"))
(propagated-inputs
(list go-golang-org-x-sys-next))
(home-page "https://golang.org/x/term")
(synopsis "Go terminal/console support")
(description
"Package term provides support functions for dealing with terminals, as commonly
found on UNIX systems.")
(license license:bsd-3)))
(define-public go-golang-org-x-text-next
(package
(name "go-golang-org-x-text")
(version "0.3.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/text")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xkw0qvfjyifdqd25y7nxdqkdh92inymw3q7841nricc9s01p4jy"))))
(build-system go-build-system)
(arguments '(#:import-path "golang.org/x/text"))
(inputs
(list go-golang-org-x-tools-bootstrap))
(home-page "https://golang.org/x/text")
(synopsis "Go Text")
(description
"text is a repository of text-related packages related to internationalization
(i18n) and localization (l10n), such as character encodings, text
transformations, and locale-specific text handling.")
(license license:bsd-3)))
(define-public go-golang-org-x-tools-next
(package
(inherit go-golang-org-x-tools)
(name "go-golang-org-x-tools")
(version "0.1.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/tools")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0h9ip7sry1y8z94jypygas4ylb403wji3vljcc5jlb54rf51x3z7"))))
(arguments
'(#:import-path "golang.org/x/tools"
#:modules ((guix build go-build-system)
2022-01-05 08:44:11 +01:00
(guix build utils)
2022-01-04 08:15:43 +01:00
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
2022-01-05 08:44:11 +01:00
(add-after 'unpack 'patch-filepaths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (find-files "src/golang.org/x/tools" "\\.go$")
(("/usr/bin/diff") (search-input-file inputs "/bin/diff")))))
2022-01-04 08:15:43 +01:00
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-drop directory 4)))
2022-01-05 08:44:11 +01:00
(find-files "src/golang.org/x/tools"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "copyright"))
(not (string-contains file "gopls"))
(not (string-contains file "testdata"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-04 08:15:43 +01:00
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
2022-01-05 08:44:11 +01:00
#:import-path (string-drop directory 4)))
(find-files "src/golang.org/x/tools"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "copyright"))
(not (string-contains file "cmd/stringer")) ; Tries to 'go get'.
(not (string-contains file "gcexportdata"))
(not (string-contains file "go/packages"))
(not (string-contains file "go/ssa"))
(not (string-contains file "godoc"))
(not (string-contains file "gopls"))
(not (string-contains file "internal"))
(not (string-contains file "testdata"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t)))))))
2022-01-04 08:15:43 +01:00
(propagated-inputs
(list go-github-com-yuin-goldmark
go-golang-org-x-mod-next
go-golang-org-x-net-next
go-golang-org-x-sync-next
go-golang-org-x-sys-next
go-golang-org-x-text-next
go-golang-org-x-xerrors-next))))
(define go-golang-org-x-tools-bootstrap
(package
(inherit go-golang-org-x-tools)
(name "go-golang-org-x-tools")
(version "0.1.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/tools")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-05 08:44:11 +01:00
(base32 "0h9ip7sry1y8z94jypygas4ylb403wji3vljcc5jlb54rf51x3z7"))))
2022-01-04 08:15:43 +01:00
;; Keep this as source-only due to the dependencies
;(arguments '(#:import-path "golang.org/x/tools"))
;(propagated-inputs
; (list
; go-golang-org-x-xerrors-next
; go-golang-org-x-text-next
; go-golang-org-x-sys-next
; go-golang-org-x-sync-next
; go-golang-org-x-net-next
; go-golang-org-x-mod-next
; go-github-com-yuin-goldmark
; ))
(properties `((hidden? . #t)))
))
(define-public go-golang-org-x-xerrors-next
(package
(name "go-golang-org-x-xerrors")
(version "0.0.0-20200804184101-5ec99f83aff1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/xerrors")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1dbzc3gmf2haazpv7cgmv97rq40g2xzwbglc17vas8dwhgwgwrzb"))))
(build-system go-build-system)
(arguments '(#:import-path "golang.org/x/xerrors"))
(home-page "https://golang.org/x/xerrors")
(synopsis #f)
(description "Package xerrors implements functions to manipulate errors.")
(license license:bsd-3)))
;;;
;;;
;;;
2021-12-30 23:18:41 +01:00
(define-public gitea
(package
(name "gitea")
2022-01-06 08:30:27 +01:00
(version "1.15.9")
2021-12-30 23:18:41 +01:00
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/go-gitea/gitea/releases"
"/download/v" version
"/gitea-src-" version ".tar.gz"))
(sha256
2022-01-06 08:30:27 +01:00
(base32 "0k17glrzpk5aaic3rj8frp0f9x24ac9cwv7mxj2562w3m9wj3957"))
(patches (search-patches "gitea-patch-makefile.patch"))
2021-12-30 23:18:41 +01:00
(modules '((guix build utils)))
(snippet
'(begin
;; TODO: Download using git-fetch and unvendor javascript.
(delete-file-recursively "vendor")))))
(build-system go-build-system)
(arguments
`(#:install-source? #f
2022-01-06 08:30:27 +01:00
#:tests? #f ; Disable tests and start with some manual testing
2022-01-03 07:42:31 +01:00
#:import-path "code.gitea.io/gitea"
;#:build-flags (list "-tags bindata sqlite sqlite_unlock_notify")
2021-12-30 23:18:41 +01:00
#:phases
(modify-phases %standard-phases
(add-after 'patch-source-shebangs 'unpatch-example-shebangs
;; If we don't do this then git repos created with this version of
;; gitea will use the build environment's bash for the different
;; git repo hooks.
(lambda _
(substitute*
(find-files "src/integrations/gitea-repositories-meta"
"(\\.sample|gitea|(post|pre)-receive|update)")
(("#!/gnu/store/.*/bin/bash") "#!/bin/bash")
(("#!/gnu/store/.*/bin/sh") "#!/bin/sh"))))
(add-before 'build 'prepare-build
(lambda _
2022-01-03 07:42:31 +01:00
(setenv "TAGS" "bindata sqlite sqlite_unlock_notify")
; ))
;(replace 'build
; (lambda _
2022-01-06 08:30:27 +01:00
; (with-directory-excursion "src/code.gitea.io/gitea"
; (substitute* "Makefile"
; (("-mod=vendor") "")
; (("go-check generate") "go-check")
2021-12-30 23:18:41 +01:00
;(("(GO_DIRS := .) vendor(.*)" all first last)
; (string-append first last "\n"))
2022-01-06 08:30:27 +01:00
; )
2022-01-03 07:42:31 +01:00
; (invoke "make" "build")
2022-01-05 08:44:11 +01:00
; (invoke "make" "gitea")
; (invoke "make" "install")
2022-01-06 08:30:27 +01:00
; )
2022-01-03 07:42:31 +01:00
))
2021-12-30 23:18:41 +01:00
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
2022-01-06 08:30:27 +01:00
(with-directory-excursion "src/code.gitea.io/gitea"
;(substitute* "Makefile"
; ;; Adjust GO_PACKAGES
; (("GO\\) list .*") "GO) list . ))\n")
; )
;; Skip testing the front-end, we're using the bundled javascript.
;(invoke "make" "test")
(invoke "make" "test-backend")
2021-12-30 23:18:41 +01:00
;; Gitea requires git with lfs support to run tests.
2022-01-06 08:30:27 +01:00
(invoke "make" "test-sqlite")
;(invoke "make" "test-sqlite-migration")
(invoke "make" "test-mysql")
(invoke "make" "test-mysql8")
(invoke "make" "test-pgsql")
))))
;(replace 'install
; (lambda _
; (with-directory-excursion "src/code.gitea.io/gitea"
; (invoke "make" "install"))))
2021-12-30 23:18:41 +01:00
(add-after 'install 'wrap-program
(lambda* (#:key outputs inputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/gitea"))
(git (assoc-ref inputs "git")))
(wrap-program bin
2022-01-06 08:30:27 +01:00
`("PATH" ":" prefix (,(string-append git "/bin")))))))
)))
2021-12-30 23:18:41 +01:00
(native-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-stretchr-testify
node))
2021-12-30 23:18:41 +01:00
(inputs
2021-12-31 10:10:08 +01:00
(list bash-minimal
git
2022-01-06 08:30:27 +01:00
go-cloud-google-com-go
go-code-gitea-io-gitea-vet
go-code-gitea-io-sdk-gitea
go-gitea-com-go-chi-binding
go-gitea-com-go-chi-cache
go-gitea-com-go-chi-captcha
go-gitea-com-go-chi-session
go-gitea-com-lunny-levelqueue
go-github-com-alecthomas-chroma
go-github-com-blevesearch-bleve-v2
go-github-com-caddyserver-certmagic
go-github-com-chi-middleware-proxy
go-github-com-denisenkom-go-mssqldb
go-github-com-djherbis-buffer
go-github-com-djherbis-nio-v3
go-github-com-dustin-go-humanize
go-github-com-editorconfig-editorconfig-core-go-v2
go-github-com-emirpasic-gods
go-github-com-ethantkoenig-rupture
go-github-com-gliderlabs-ssh
2021-12-31 10:10:08 +01:00
go-github-com-gobwas-glob
go-github-com-go-chi-chi
2022-01-06 08:30:27 +01:00
go-github-com-go-chi-cors
go-github-com-go-enry-go-enry-v2
go-github-com-go-git-go-billy-v5
go-github-com-go-git-go-git-v5
go-github-com-gogs-chardet
go-github-com-gogs-cron
go-github-com-gogs-go-gogs-client
go-github-com-go-ldap-ldap-v3
go-github-com-google-go-github-v32
go-github-com-go-redis-redis-v8
go-github-com-gorilla-context
go-github-com-go-sql-driver-mysql
go-github-com-go-swagger-go-swagger
go-github-com-go-testfixtures-testfixtures-v3
go-github-com-hashicorp-golang-lru
go-github-com-huandu-xstrings
go-github-com-issue9-identicon
go-github-com-jaytaylor-html2text
go-github-com-json-iterator-go
go-github-com-kballard-go-shellquote
go-github-com-keybase-go-crypto
go-github-com-klauspost-compress
go-github-com-lafriks-xormstore
go-github-com-lib-pq
go-github-com-lunny-dingtalk-webhook
go-github-com-markbates-goth
go-github-com-mattn-go-isatty
go-github-com-mattn-go-sqlite3
go-github-com-mholt-archiver-v3
go-github-com-microcosm-cc-bluemonday
go-github-com-minio-minio-go-v7
go-github-com-nfnt-resize
go-github-com-niklasfasching-go-org
2021-12-31 10:10:08 +01:00
go-github-com-nytimes-gziphandler
2022-01-06 08:30:27 +01:00
go-github-com-oliamb-cutter
go-github-com-olivere-elastic-v7
go-github-com-pkg-errors
go-github-com-pquerna-otp
go-github-com-prometheus-client-golang
go-github-com-puerkitobio-goquery
go-github-com-quasoft-websspi
go-github-com-sergi-go-diff
go-github-com-shurcool-vfsgen
go-github-com-syndtr-goleveldb
go-github-com-tstranex-u2f
go-github-com-unknwon-com
go-github-com-unknwon-i18n
go-github-com-unknwon-paginater
go-github-com-unrolled-render
go-github-com-urfave-cli
go-github-com-xanzy-go-gitlab
go-github-com-yohcop-openid-go
go-github-com-yuin-goldmark
go-github-com-yuin-goldmark-highlighting
go-github-com-yuin-goldmark-meta
go-go-jolheiser-com-hcaptcha
go-go-jolheiser-com-pwn
go-golang-org-x-crypto
go-golang-org-x-net
go-golang-org-x-oauth2
go-golang-org-x-sys
go-golang-org-x-text
go-golang-org-x-tools
go-gopkg-in-gomail-v2
go-gopkg-in-ini-v1
go-gopkg-in-yaml-v2
go-mvdan-cc-xurls-v2
go-strk-kbt-io-projects-go-libravatar
go-xorm-io-builder
go-xorm-io-xorm
go-github-com-6543-go-version
go-github-com-zeripath-jwt))
2021-12-30 23:18:41 +01:00
(home-page "https://gitea.io/")
(synopsis "Self-hosted git service")
(description
"Gitea (git with a cup of tea) is a painless self-hosted Git Service.")
(properties
'((release-monitoring-url . "https://github.com/go-gitea/gitea/releases")))
(license license:expat)))
2022-01-04 08:15:43 +01:00
(define-public newer-go-libraries
(package-input-rewriting/spec
`(
;; This one is in Guix twice.
("go-github.com-mattn-go-runewidth" . ,(const go-github-com-mattn-go-runewidth))
;; This isn't picked up for some reason.
;("go-github-com-hashicorp-go-version" . ,(const go-github-com-hashicorp-go-version-1.3.0))
;; We should use the newer versions.
("go-golang-org-x-crypto" . ,(const go-golang-org-x-crypto-next))
("go-golang-org-x-image" . ,(const go-golang-org-x-image-next))
("go-golang-org-x-lint" . ,(const go-golang-org-x-lint-next))
("go-golang-org-x-mod" . ,(const go-golang-org-x-mod-next))
("go-golang-org-x-net" . ,(const go-golang-org-x-net-next))
;("go-golang-org-x-oauth2" . ,(const go-golang-org-x-oauth2-next))
("go-golang-org-x-sync" . ,(const go-golang-org-x-sync-next))
("go-golang-org-x-sys" . ,(const go-golang-org-x-sys-next))
("go-golang-org-x-term" . ,(const go-golang-org-x-term-next))
("go-golang-org-x-text" . ,(const go-golang-org-x-text-next))
;("go-golang-org-x-time" . ,(const go-golang-org-x-time-next))
("go-golang-org-x-tools" . ,(const go-golang-org-x-tools-next))
("go-golang-org-x-xerrors" . ,(const go-golang-org-x-xerrors-next))
)))
(define-public gitea-with-newer-go-libraries
(package
(inherit (newer-go-libraries gitea))
(name "gitea-with-newer-go-libraries")))
;;;
;;;
;;;
2022-01-03 07:42:31 +01:00
(define-public go-code-gitea-io-sdk-gitea
(package
(name "go-code-gitea-io-sdk-gitea")
(version "0.14.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/gitea/go-sdk")
(commit (string-append "gitea/v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0a5dp0wlinnjacv7a6qkkg9ninqqbf8qrdfjr7is0kxvlkr0ih7f"))))
(build-system go-build-system)
(arguments
2022-01-06 08:30:27 +01:00
'(#:tests? #f ; Requires a running gitea instance.
2022-01-03 07:42:31 +01:00
#:unpack-path "code.gitea.io/sdk"
#:import-path "code.gitea.io/sdk/gitea"))
(propagated-inputs
(list go-github-com-hashicorp-go-version-1.3.0))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://code.gitea.io/sdk")
(synopsis "Gitea SDK for Go")
(description
"This project acts as a client SDK implementation written in Go to interact with
the Gitea API implementation. For further informations take a look at the
current @url{https://godoc.org/code.gitea.io/sdk/gitea,documentation}.")
(license license:expat)))
(define-public go-github-com-hashicorp-go-version-1.3.0
(package
(name "go-github-com-hashicorp-go-version")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-version")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "15ygnddqh4wq1l866cicc9cmbcqvym16ai8dj71i0wqyknnfxr3v"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/hashicorp/go-version"))
(home-page "https://github.com/hashicorp/go-version")
(synopsis "Versioning Library for Go")
(description
"go-version is a library for parsing versions and version constraints, and
verifying versions against a set of constraints. go-version can sort a
collection of versions properly, handles prerelease/beta versions, can increment
versions, etc.")
(license license:mpl2.0)))
2021-12-30 23:18:41 +01:00
(define-public go-code-gitea-io-gitea-vet
(package
(name "go-code-gitea-io-gitea-vet")
(version "0.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/gitea/gitea-vet")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1f5b3l79jwp6nifj9pz12ddjz7z1r85pfrrdkix6hv0f7fb6vnbg"))))
(build-system go-build-system)
(arguments '(#:import-path "code.gitea.io/gitea-vet"))
2021-12-31 10:10:08 +01:00
(propagated-inputs
(list go-golang-org-x-tools))
2021-12-30 23:18:41 +01:00
(home-page "https://code.gitea.io/gitea-vet")
(synopsis "gitea-vet")
(description "@code{go vet} tool for Gitea.")
(license license:expat)))
(define-public go-gitea-com-go-chi-binding
(package
(name "go-gitea-com-go-chi-binding")
(version "0.0.0-20211013065440-d16dc407c2be")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/go-chi/binding.git")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0hkgnyr8z0l4xrb3d159dhz85kabvs6g0wpy9g9nh467z3z3v6mm"))))
(build-system go-build-system)
(arguments '(#:import-path "gitea.com/go-chi/binding"))
(propagated-inputs
(list go-github-com-unknwon-com
go-github-com-goccy-go-json
go-github-com-go-chi-chi-v5))
2021-12-31 10:10:08 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://gitea.com/go-chi/binding")
(synopsis "License")
(description
"Package binding is a middleware that provides request data binding and
validation for Chi.")
(license license:asl2.0)))
(define-public go-github-com-go-redis-redis
(package
(name "go-github-com-go-redis-redis")
(version "6.15.9+incompatible")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-redis/redis")
(commit (string-append "v" (go-version->git-ref version)))))
(file-name (git-file-name name version))
(sha256
(base32 "1y13zhv4isf28bq249pz9dp08rb8amyfp2gdbfah09zcmlhjsaki"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; Tests need a running redis server.
#:import-path "github.com/go-redis/redis"))
(native-inputs
(list go-github-com-onsi-ginkgo))
(home-page "https://github.com/go-redis/redis")
(synopsis "Redis client for Golang")
(description "Package redis implements a Redis client.")
(license license:bsd-2)))
(define-public go-github-com-lunny-log
(package
(name "go-github-com-lunny-log")
(version "0.0.0-20160921050905-7887c61bf0de")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lunny/log")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1yyqk5lmz3nrd6dnpafmrpkx80f311i5dzw6n2lvn29n9jkkjg97"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/lunny/log"))
(native-inputs
(list go-github-com-mattn-go-sqlite3))
(home-page "https://github.com/lunny/log")
(synopsis "log")
(description "For Single File:")
(license license:bsd-3)))
(define-public go-github-com-lunny-nodb
(package
(name "go-github-com-lunny-nodb")
(version "0.0.0-20160621015157-fc1ef06ad4af")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lunny/nodb")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "08p6sxphi5w9mm43pj9ma5v4n5r2v0xr7nzmp2nya3hpn9fq2vcj"))))
(build-system go-build-system)
2022-01-06 08:30:27 +01:00
(arguments
'(#:tests? #f ; Repository archived.
#:import-path "github.com/lunny/nodb"))
(propagated-inputs
(list go-github-com-burntsushi-toml
go-github-com-lunny-log
go-github-com-siddontang-go-snappy
go-github-com-syndtr-goleveldb))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/lunny/nodb")
(synopsis "NoDB")
(description "package nodb is a high performance embedded NoSQL.")
(license license:expat)))
(define-public go-github-com-siddontang-go-snappy
(package
(name "go-github-com-siddontang-go-snappy")
(version "0.0.0-20140704025258-d8f7bb82a96d")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/siddontang/go-snappy")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "11h25k4h8mdnhm8jyllsvv597bgbq3zf5ym2ccppla1jflp5r3jg"))))
(build-system go-build-system)
(arguments
2022-01-06 08:30:27 +01:00
'(
#:import-path "github.com/siddontang/go-snappy"
;#:unpack-path "github.com/siddontang/go-snappy"
;#:import-path "github.com/siddontang/go-snappy/snappy"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path "github.com/siddontang/go-snappy/snappy"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path "github.com/siddontang/go-snappy/snappy")))))))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/siddontang/go-snappy")
(synopsis #f)
(description #f)
(license license:bsd-3)))
(define-public go-gitea-com-go-chi-cache
(package
(name "go-gitea-com-go-chi-cache")
(version "0.0.0-20211201020628-dcb774c4ffea")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/go-chi/cache.git")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qb3anqfvm5lm0n6anb48rn3f597wq3vkpg90g3gb8qblkyy9h24"))))
(build-system go-build-system)
(arguments '(#:import-path "gitea.com/go-chi/cache"))
(propagated-inputs
2022-01-06 08:30:27 +01:00
(list go-github-com-bradfitz-gomemcache
go-github-com-go-redis-redis
go-github-com-go-sql-driver-mysql
go-github-com-lunny-nodb
go-github-com-siddontang-ledisdb
go-github-com-smartystreets-goconvey
go-github-com-unknwon-com
go-gopkg-in-ini-v1))
2021-12-30 23:18:41 +01:00
(home-page "https://gitea.com/go-chi/cache")
(synopsis "cache")
(description
"Package cache is a middleware that provides the cache management of Macaron.")
(license license:asl2.0)))
(define-public go-gitea-com-go-chi-captcha
(package
(name "go-gitea-com-go-chi-captcha")
(version "0.0.0-20211013065431-70641c1a35d5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/go-chi/captcha.git")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1k7pz1zmnrbgd8vlvpija3wm7qa14dmqywvqrqxx6l0n1dxzd4fi"))))
(build-system go-build-system)
(arguments '(#:import-path "gitea.com/go-chi/captcha"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-unknwon-com
go-github-com-smartystreets-goconvey
go-github-com-go-chi-chi-v5
go-gitea-com-go-chi-cache))
2021-12-30 23:18:41 +01:00
(home-page "https://gitea.com/go-chi/captcha")
(synopsis "captcha")
(description
"Package captcha a middleware that provides captcha service for chi.")
(license license:asl2.0)))
(define-public go-github-com-alicebob-gopher-json
(package
(name "go-github-com-alicebob-gopher-json")
(version "0.0.0-20200520072559-a9ecdc9d1d3a")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alicebob/gopher-json")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fblh4anp85qc77zv7465a7a5yn2l5i2lrwsrnbhlmhpzfa6lmdl"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/alicebob/gopher-json"))
(propagated-inputs
(list go-github-com-yuin-gopher-lua))
(home-page "https://github.com/alicebob/gopher-json")
(synopsis "gopher-json")
(description
"Package json is a simple JSON encoder/decoder for gopher-lua.")
(license license:unlicense)))
(define-public go-github-com-alicebob-miniredis
(package
(name "go-github-com-alicebob-miniredis")
(version "2.5.0+incompatible")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alicebob/miniredis")
(commit (string-append "v" (go-version->git-ref version)))))
(file-name (git-file-name name version))
(sha256
(base32 "193vjx8lrrklffjyi6x635hmmwa72gjvcq2dm09hyd3258fpdzrg"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/alicebob/miniredis"))
(propagated-inputs
(list go-github-com-alicebob-gopher-json
go-github-com-gomodule-redigo
go-github-com-yuin-gopher-lua))
(home-page "https://github.com/alicebob/miniredis")
(synopsis "Miniredis")
(description
"Package miniredis is a pure Go Redis test server, for use in Go unittests.
There are no dependencies on system binaries, and every server you start will be
empty.")
(license license:expat)))
(define-public go-github-com-cupcake-rdb
(package
(name "go-github-com-cupcake-rdb")
(version "0.0.0-20161107195141-43ba34106c76")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tent/rdb")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1l4bsn5yj8r875crz1rsk6dlvhv0bd8mgazsch5vl4c19v0fs2ib"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/cupcake/rdb"))
(native-inputs
(list go-gopkg-in-check-v1))
(home-page "https://github.com/cupcake/rdb")
(synopsis "rdb")
(description
"Package rdb implements parsing and encoding of the Redis RDB file format.")
(license license:expat)))
(define-public go-github-com-edsrzf-mmap-go
(package
(name "go-github-com-edsrzf-mmap-go")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/edsrzf/mmap-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11xpfcacfvmrkbp0pv4j8pg2gyjnxpfp7l93j42h0svwxywhjmrc"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/edsrzf/mmap-go"))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/edsrzf/mmap-go")
(synopsis "mmap-go")
(description
"Package mmap allows mapping files into memory. It tries to provide a simple,
reasonably portable interface, but doesn't go out of its way to abstract away
every little platform detail. This specifically means:")
(license license:bsd-3)))
(define-public go-github-com-glendc-gopher-json
(package
(name "go-github-com-glendc-gopher-json")
(version "0.0.0-20170414221815-dc4743023d0c")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/GlenDC/gopher-json")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hvam978ls0768smwfywwfg2dy816bfifch4hdwwbsx2d59zpphs"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/glendc/gopher-json"))
(propagated-inputs
(list go-github-com-yuin-gopher-lua))
(home-page "https://github.com/glendc/gopher-json")
(synopsis "gopher-json")
(description
"Package json is a simple JSON encoder/decoder for gopher-lua.")
(license license:unlicense)))
(define-public go-github-com-gomodule-redigo
(package
(name "go-github-com-gomodule-redigo")
(version "1.8.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gomodule/redigo")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0s8njypx4in1pmjq4k3s8xzc70x39yp03sh69mzi905fqaj8609r"))))
(build-system go-build-system)
(arguments
'(#:unpack-path "github.com/gomodule/redigo"
#:import-path "github.com/gomodule/redigo/redis"))
(native-inputs
(list go-github-com-stretchr-testify
redis))
(home-page "https://github.com/gomodule/redigo")
(synopsis "Redigo")
(description
"Redigo is a @url{http://golang.org/,Go} client for the
@url{http://redis.io/,Redis} database.")
(license license:asl2.0)))
(define-public go-github-com-peterh-liner
(package
(name "go-github-com-peterh-liner")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/peterh/liner")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ma4wk01f63s1vshdly3m7pn56xlapi1hfmhqvs8yqx5pqi2w2yf"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/peterh/liner"))
(propagated-inputs
(list go-github-com-mattn-go-runewidth))
(home-page "https://github.com/peterh/liner")
(synopsis "Liner")
(description
"Package liner implements a simple command line editor, inspired by linenoise
(@url{https://github.com/antirez/linenoise/,https://github.com/antirez/linenoise/}).
This package supports WIN32 in addition to the xterm codes supported by
everything else.")
(license license:expat)))
(define-public go-github-com-siddontang-go
(package
(name "go-github-com-siddontang-go")
(version "0.0.0-20180604090527-bdc77568d726")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/siddontang/go")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qx28xwqby3pl2r62y700x7j7aplmfm4hrq0y49p4ar8927mpxl6"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/siddontang/go"
#:tests? #f
#:phases
(modify-phases %standard-phases
(delete 'build))))
(home-page "https://github.com/siddontang/go")
(synopsis "golib")
(description "my golang lib")
(license license:expat)))
(define-public go-github-com-siddontang-goredis
(package
(name "go-github-com-siddontang-goredis")
(version "0.0.0-20180423163523-0b4019cbd7b7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/siddontang/goredis")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1cmkmljgyqvfc5ba5jj6xfiwdc82vksagvh2v7z06265i2snvhw5"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/siddontang/goredis"))
(native-inputs
(list go-github-com-alicebob-miniredis))
(home-page "https://github.com/siddontang/goredis")
(synopsis #f)
(description "Package goredis is a client for the redis and ledisdb.")
(license license:expat)))
(define-public go-github-com-ugorji-go-codec
(package
(name "go-github-com-ugorji-go-codec")
(version "1.2.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ugorji/go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nwqx41f82r9rmdhzi01bgvwpsa7jgcl3s6n3r7q3hq48kw13g67"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/ugorji/go/codec"
#:unpack-path "github.com/ugorji/go"))
(home-page "https://github.com/ugorji/go")
(synopsis "Package Documentation for github.com/ugorji/go/codec")
(description
"Package codec provides a High Performance, Feature-Rich Idiomatic Go 1.4+
codec/encoding library for binc, msgpack, cbor, json.")
(license license:expat)))
(define-public go-github-com-ugorji-go
(package
(name "go-github-com-ugorji-go")
(version "1.2.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ugorji/go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nwqx41f82r9rmdhzi01bgvwpsa7jgcl3s6n3r7q3hq48kw13g67"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/ugorji/go"))
(home-page "https://github.com/ugorji/go")
(synopsis "go-codec")
(description
"This repository contains the @code{go-codec} library, the @code{codecgen} tool
and benchmarks for comparing against other libraries.")
(license license:expat)))
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chzyer/logex")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "07ksz43a8kvx0hm8qji6kb1xm7fbwmwapcvcq9zpc8v337jggs4g"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Figure out fix
#:import-path "github.com/chzyer/logex"))
(home-page "https://github.com/chzyer/logex")
(synopsis "Logex")
(description
"An golang log lib, supports tracing and level, wrap by standard log lib")
(license license:expat)))
(define-public go-github-com-chzyer-readline
(package
(name "go-github-com-chzyer-readline")
(version "0.0.0-20180603132655-2972be24d48e")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chzyer/readline")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "104q8dazj8yf6b089jjr82fy9h1g80zyyzvp3g8b44a7d8ngjj6r"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/chzyer/readline"))
(native-inputs
(list go-github-com-chzyer-test))
(home-page "https://github.com/chzyer/readline")
(synopsis "Guide")
(description
"Readline is a pure go implementation for GNU-Readline kind library.")
(license license:expat)))
(define-public go-github-com-chzyer-test
(package
(name "go-github-com-chzyer-test")
(version "0.0.0-20210722231415-061457976a23")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chzyer/test")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1jjskijacwzz0qxzrbwsglpg5vil7v4xaq8l40r2fhd2icl9hz7a"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; nil pointer dereference‽
#:import-path "github.com/chzyer/test"))
(propagated-inputs
(list go-github-com-chzyer-logex))
(home-page "https://github.com/chzyer/test")
(synopsis "test")
(description #f)
(license license:expat)))
(define-public go-github-com-yuin-gopher-lua
(package
(name "go-github-com-yuin-gopher-lua")
(version "0.0.0-20210529063254-f4c35e4016d9")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/yuin/gopher-lua")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1knkabycjvjkjb7vdj1cm0g856fsc8yzm3yqlwhlbzbpkfq4xjcf"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/yuin/gopher-lua"))
(propagated-inputs
(list go-golang-org-x-sys
go-github-com-chzyer-test
go-github-com-chzyer-readline
go-github-com-chzyer-logex))
(home-page "https://github.com/yuin/gopher-lua")
(synopsis #f)
(description "GopherLua: VM and compiler for Lua in Go")
(license license:expat)))
(define-public go-gopkg-in-mgo-v2
(package
(name "go-gopkg-in-mgo-v2")
(version "2.0.0-20190816093944-a6b53ec6cb22")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gopkg.in/mgo.v2")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lgvwxsbmdrf4938qkxl56wbwgbphk2qqnmpf73qdmlv4qsg14na"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; Tests try to use a running mongodb server.
#:import-path "gopkg.in/mgo.v2"
#:phases
(modify-phases %standard-phases
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.gz$")))))))
(native-inputs
(list go-gopkg-in-check-v1))
(home-page "https://gopkg.in/mgo.v2")
(synopsis "The MongoDB driver for Go")
(description "Package mgo offers a rich MongoDB driver for Go.")
(license license:bsd-2)))
(define-public go-github-com-siddontang-ledisdb
(package
(name "go-github-com-siddontang-ledisdb")
(version "0.0.0-20200510135210-d35789ec47e6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ledisdb/ledisdb")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1vjsjscnbg2l9id5psn3ja0hs0jf3bal01b87cx34swjxmnawh1p"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "vendor")))))
(build-system go-build-system)
(arguments
2022-01-06 08:30:27 +01:00
'(#:import-path "github.com/ledisdb/ledisdb"
#:modules ((guix build go-build-system)
(guix build utils)
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-drop directory 4)))
(find-files "src/github.com/ledisdb/ledisdb"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-drop directory 4)))
(find-files "src/github.com/ledisdb/ledisdb"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (string-contains file "ledisdb/ledisdb/ledis"))
(not (string-contains file "ledisdb/server"))
(not (string-contains file "ledisdb/store"))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t)))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2022-01-06 08:30:27 +01:00
(list go-github-com-edsrzf-mmap-go
2021-12-30 23:18:41 +01:00
go-github-com-glendc-gopher-json
2022-01-06 08:30:27 +01:00
go-github-com-pelletier-go-toml
go-github-com-peterh-liner
go-github-com-siddontang-go
go-github-com-siddontang-goredis
go-github-com-siddontang-rdb
go-github-com-syndtr-goleveldb
go-github-com-ugorji-go
go-github-com-yuin-gopher-lua
go-golang-org-x-net))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/siddontang/ledisdb")
(synopsis "LedisDB")
(description
"Ledisdb is a high-performance NoSQL database, similar to Redis, written in
@url{http://golang.org/,Go}. It supports many data structures including kv,
list, hash, zset, set.")
(license license:expat)))
(define-public go-github-com-siddontang-rdb
(package
(name "go-github-com-siddontang-rdb")
(version "0.0.0-20150307021120-fc89ed2e418d")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/siddontang/rdb")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "107wb2kcg67iggfx1bjmm5nhy8cg96zi1iw7nkv9dydivnvalbbd"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/siddontang/rdb"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-cupcake-rdb))
(home-page "https://github.com/siddontang/rdb")
(synopsis "rdb")
(description "Handling Redis RDB format.")
(license license:expat)))
(define-public go-gitea-com-go-chi-session
(package
(name "go-gitea-com-go-chi-session")
(version "0.0.0-20211218221615-e3605d8b28b8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/go-chi/session.git")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1m5dmjlb85z6518fpvcyl9ljz6zivq9is4mxzbfylkssmavrqmb7"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "gitea.com/go-chi/session"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2022-01-06 08:30:27 +01:00
(list go-github-com-bradfitz-gomemcache
go-github-com-couchbase-go-couchbase
go-github-com-go-redis-redis-v8
go-github-com-go-sql-driver-mysql
go-github-com-go-chi-chi-v5
go-github-com-lib-pq
go-github-com-siddontang-ledisdb
go-github-com-smartystreets-goconvey
2021-12-30 23:18:41 +01:00
go-github-com-unknwon-com
2022-01-06 08:30:27 +01:00
go-gopkg-in-ini-v1))
2021-12-30 23:18:41 +01:00
(home-page "https://gitea.com/go-chi/session")
(synopsis "Session")
(description
"Package session a middleware that provides the session management of Macaron.")
(license license:asl2.0)))
(define-public go-gitea-com-lunny-levelqueue
(package
(name "go-gitea-com-lunny-levelqueue")
(version "0.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.com/lunny/levelqueue.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ppgr841qp7z2gp93ymkw7xy56jdb6h2r9zy8nn4v3d3lxr0gl0n"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "gitea.com/lunny/levelqueue"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-syndtr-goleveldb
go-github-com-golang-snappy))
2021-12-31 10:10:08 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://gitea.com/lunny/levelqueue")
(synopsis "levelqueue")
(description
"Level queue is a simple queue golang library base on go-leveldb.")
(license license:expat)))
(define-public go-github-com-nytimes-gziphandler
(package
(name "go-github-com-nytimes-gziphandler")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nytimes/gziphandler")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0rhrjlw220hnymzfccm0yir3pc9dpj7h3gwzhzq2cbsb3hhsqvyy"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/NYTimes/gziphandler"))
(native-inputs
2021-12-30 23:18:41 +01:00
(list go-github-com-stretchr-testify))
(home-page "https://github.com/NYTimes/gziphandler")
(synopsis "Gzip Handler")
(description
"This is a tiny Go package which wraps HTTP handlers to transparently gzip the
response body, for clients which support it. Although it's usually simpler to
leave that to a reverse proxy (like nginx or Varnish), this package is useful
when that's undesirable.")
(license license:asl2.0)))
(define-public go-github-com-bradfitz-gomemcache
(package
(name "go-github-com-bradfitz-gomemcache")
(version "0.0.0-20190913173617-a41fca850d0b")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bradfitz/gomemcache")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "18qpds6xr73jy80pj7l3pc1l1ndcy3va2dl8fzk17bgwg49sxwfz"))
(modules '((guix build utils)))
(snippet
'(begin
;; Fixes the untyped-int -> string of one rune issue.
;; https://github.com/golang/go/issues/32479
(substitute* "memcache/memcache_test.go"
(("string\\(0x7f") "string(rune(0x7f)"))))))
(build-system go-build-system)
(arguments
'(#:unpack-path "github.com/bradfitz/gomemcache"
#:import-path "github.com/bradfitz/gomemcache/memcache"))
(home-page "https://github.com/bradfitz/gomemcache")
(synopsis "Memcache client library for the Go programming language")
(description
"This is a memcache client library for the Go programming language.")
(license license:asl2.0)))
(define-public go-github-com-caddyserver-certmagic
(package
(name "go-github-com-caddyserver-certmagic")
2022-01-06 08:30:27 +01:00
(version "0.14.1")
2021-12-30 23:18:41 +01:00
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/caddyserver/certmagic")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-06 08:30:27 +01:00
(base32 "0y65cb1hncgb4fhrkc22fh47scdix77r22nlj11c1f846vy5frbx"))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
(arguments
'(#:tests? #f ; Tests require network access.
#:import-path "github.com/caddyserver/certmagic"))
(propagated-inputs
(list go-golang-org-x-net
go-golang-org-x-crypto
go-go-uber-org-zap
go-github-com-miekg-dns
go-github-com-mholt-acmez
go-github-com-libdns-libdns
go-github-com-klauspost-cpuid-v2))
(home-page "https://github.com/caddyserver/certmagic")
(synopsis "Easy and Powerful TLS Automation")
(description
"Package certmagic automates the obtaining and renewal of TLS certificates,
including TLS & HTTPS best practices such as robust OCSP stapling, caching,
HTTP->HTTPS redirects, and more.")
(license license:asl2.0)))
(define-public go-github-com-go-chi-chi-v5
(package
(name "go-github-com-go-chi-chi-v5")
(version "5.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-chi/chi")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0rzrsxz4xj0973c6nxklvq2vmg2m795snhk25836i0gnd1jnx79k"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/go-chi/chi/v5"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-chi/chi")
(synopsis #f)
(description
"Package chi is a small, idiomatic and composable router for building HTTP
services.")
(license license:expat)))
(define-public go-github-com-chi-middleware-proxy
(package
(name "go-github-com-chi-middleware-proxy")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chi-middleware/proxy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0pslb4x8jhblgg7sfahrsiv7r4ay5aizgrqkrpfpwzsnhw88fl6h"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/chi-middleware/proxy"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-go-chi-chi-v5))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/chi-middleware/proxy")
(synopsis "proxy middleware")
(description
"Forwarded headers middleware to use if application is run behind reverse proxy.")
(license license:expat)))
(define-public go-github-com-couchbase-go-couchbase
(package
(name "go-github-com-couchbase-go-couchbase")
(version "0.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/couchbase/go-couchbase")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0dpy8148a1fz47yibn8mzl29savqg4jkfvyp8vvgsi0zp7jmwj89"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/couchbase/go-couchbase"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-couchbase-gomemcached
go-github-com-couchbase-goutils))
(home-page "https://github.com/couchbase/go-couchbase")
(synopsis "A smart client for couchbase in go")
(description "Package couchbase provides a smart client for go.")
(license license:expat)))
(define-public go-github-com-couchbase-gomemcached
(package
(name "go-github-com-couchbase-gomemcached")
(version "0.1.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/couchbase/gomemcached")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "10w74gc05x5naspls39sv2r92krrg31mk266w3lyqqwc0s3fxysl"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/couchbase/gomemcached"))
2021-12-30 23:18:41 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/couchbase/gomemcached")
(synopsis "gomemcached")
(description
"Package gomemcached is binary protocol packet formats and constants.")
(license license:expat)))
;; DO NOT UPGRADE! Future versions are under the nonfree Business Source License.
(define-public go-github-com-couchbase-goutils
(package
(name "go-github-com-couchbase-goutils")
(version "0.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/couchbase/goutils")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1nq3lz1isbbcgql7rq249m53gansvzd3xbc8kqchcp5mm60a1rq5"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/couchbase/goutils"
;; This package has circular dependencies with the other couchbase packages.
#:tests? #f
#:phases
(modify-phases %standard-phases
(delete 'build))))
(propagated-inputs
(list go-github-com-pkg-errors
go-golang-org-x-crypto))
(home-page "https://github.com/couchbase/goutils")
(synopsis "goutils")
(description "Common utility libraries for Couchbase Go code.")
(license license:asl2.0)))
;(define-public go-github-com-couchbase-cbauth
; (package
; (name "go-github-com-couchbase-cbauth")
; (version "0.1.0")
; (source
; (origin
; (method git-fetch)
; (uri (git-reference
; (url "https://github.com/couchbase/cbauth")
; (commit (string-append "v" version))))
; (file-name (git-file-name name version))
; (sha256
; (base32 "0inxwal9g09dk0psxal9y916wxdx5rk83rdjlgk6clxi31apmqp3"))))
; (build-system go-build-system)
; (arguments
; '(#:import-path "github.com/couchbase/cbauth"))
; (propagated-inputs
; (list ;go-github-com-couchbase-clog ; Nonfree, under BSL-1.1
; go-github-com-couchbase-go-couchbase
; go-github-com-couchbase-gomemcached))
; (home-page "https://github.com/couchbase/cbauth")
; (synopsis #f)
; (description
; "Package cbauth provides auth{N,Z} for couchbase server services.")
; (license license:asl2.0)))
(define-public go-github-com-cpuguy83-go-md2man-v2
(package
(name "go-github-com-cpuguy83-go-md2man-v2")
(version "2.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cpuguy83/go-md2man")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-04 08:15:43 +01:00
(base32 "051ljpzf1f5nh631lvn53ziclkzmx5lza8545mkk6wxdfnfdcx8f"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "vendor")))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/cpuguy83/go-md2man/v2"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-russross-blackfriday-v2))
(home-page "https://github.com/cpuguy83/go-md2man")
(synopsis "go-md2man")
(description "Converts markdown into roff (man pages).")
(license license:expat)))
(define-public go-github-com-editorconfig-editorconfig-core-go-v2
(package
(name "go-github-com-editorconfig-editorconfig-core-go-v2")
(version "2.4.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/editorconfig/editorconfig-core-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "15j8gq2kxgccwkjaa1yyam1z4lghm32q638w43c6ghn6mhmvxsxf"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/editorconfig/editorconfig-core-go/v2"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-gopkg-in-ini-v1
go-golang-org-x-mod
go-github-com-google-go-cmp))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/editorconfig/editorconfig-core-go")
(synopsis "Editorconfig Core Go")
(description
"This package provides a @url{https://editorconfig.org/,Editorconfig} file parser
and manipulator for Go.")
(license license:expat)))
(define-public go-github-com-blevesearch-go-porterstemmer
(package
(name "go-github-com-blevesearch-go-porterstemmer")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/go-porterstemmer")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nj448j7kj31vg76xa7nh2i6iz4b4fnvarh0dgsl11ay1pmfhj45"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/blevesearch/go-porterstemmer"
;; Tests require network access.
#:tests? #f))
(home-page "https://github.com/blevesearch/go-porterstemmer")
(synopsis "This fork...")
(description
"I'm maintaining this fork because the original author was not replying to issues
or pull requests. For now I plan on maintaining this fork as necessary.")
(license license:expat)))
(define-public go-github-com-blevesearch-segment
(package
(name "go-github-com-blevesearch-segment")
(version "0.9.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/segment")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1p8n2p047x3lyahfhly92qm8b90yc6p1yksns73amlrn6fwdhcyx"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/segment"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/blevesearch/segment")
(synopsis "segment")
(description
"Package segment is a library for performing Unicode Text Segmentation as
described in Unicode Standard Annex #29
@url{http://www.unicode.org/reports/tr29/,http://www.unicode.org/reports/tr29/}")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-snowballstem
(package
(name "go-github-com-blevesearch-snowballstem")
(version "0.9.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/snowballstem")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1yzglihjjn588xmmkaawqhc95pkk1cyc4bq7ipw7jqfw2np1f2rm"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/snowballstem"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/blevesearch/snowballstem")
(synopsis "snowballstem")
(description
"This repository contains the Go stemmers generated by the
@url{https://github.com/snowballstem/snowball,Snowball} project. They are
maintained outside of the core bleve package so that they may be more easily be
reused in other contexts.")
(license license:bsd-3)))
(define-public go-github-com-blevesearch-upsidedown-store-api
(package
(name "go-github-com-blevesearch-upsidedown-store-api")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/upsidedown_store_api")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1vj9dqwaixpd090rsqdp82ikp9hdvfs6868dbgi7fniyr0j0gn27"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/blevesearch/upsidedown_store_api"))
(home-page "https://github.com/blevesearch/upsidedown_store_api")
(synopsis "Upsidedown Store API")
(description
"Upsidedown supports a pluggable Key/Value storage interface.")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-zapx-v11
(package
(name "go-github-com-blevesearch-zapx-v11")
(version "11.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/zapx")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "158mpby3lidxqb3dnia3m11h5p071xwv8kh0nn1xf4sl98c7aqq2"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/zapx/v11"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-spf13-cobra
go-github-com-golang-snappy
go-github-com-blevesearch-vellum
go-github-com-blevesearch-scorch-segment-api-v2
go-github-com-blevesearch-mmap-go
go-github-com-blevesearch-bleve-index-api
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/zapx")
(synopsis "zapx file format")
(description
"The zapx module is fork of @url{https://github.com/blevesearch/zap,zap} module
which maintains file format compatibility, but removes dependency on bleve, and
instead depends only on the indepenent interface modules:")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-zapx-v12
(package
(name "go-github-com-blevesearch-zapx-v12")
(version "12.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/zapx")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "06fklrw1b0jqbalfknn0a6zrsxqqdg3ym6ph2w14d5lagnbf9zxn"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/blevesearch/zapx/v12"))
(propagated-inputs
(list go-github-com-spf13-cobra
go-github-com-golang-snappy
go-github-com-blevesearch-vellum
go-github-com-blevesearch-scorch-segment-api-v2
go-github-com-blevesearch-mmap-go
go-github-com-blevesearch-bleve-index-api
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/zapx")
(synopsis "zapx file format")
(description
"The zapx module is fork of @url{https://github.com/blevesearch/zap,zap} module
which maintains file format compatibility, but removes dependency on bleve, and
instead depends only on the indepenent interface modules:")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-zapx-v13
(package
(name "go-github-com-blevesearch-zapx-v13")
(version "13.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/zapx")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "05iwdzwz7wls3cjslckjhbzxkgn3169rn5dpan79dmi373j7i6rl"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/blevesearch/zapx/v13"))
(propagated-inputs
(list go-github-com-spf13-cobra
go-github-com-golang-snappy
go-github-com-blevesearch-vellum
go-github-com-blevesearch-scorch-segment-api-v2
go-github-com-blevesearch-mmap-go
go-github-com-blevesearch-bleve-index-api
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/zapx")
(synopsis "zapx file format")
(description
"The zapx module is fork of @url{https://github.com/blevesearch/zap,zap} module
which maintains file format compatibility, but removes dependency on bleve, and
instead depends only on the indepenent interface modules:")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-zapx-v14
(package
(name "go-github-com-blevesearch-zapx-v14")
(version "14.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/zapx")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00h97j2dx49652l21rbgih8cx2acpnspi9gzirsavbwji2grfh3z"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/zapx/v14"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-spf13-cobra
go-github-com-golang-snappy
go-github-com-blevesearch-vellum
go-github-com-blevesearch-scorch-segment-api-v2
go-github-com-blevesearch-mmap-go
go-github-com-blevesearch-bleve-index-api
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/zapx")
(synopsis "zapx file format")
(description
"The zapx module is fork of @url{https://github.com/blevesearch/zap,zap} module
which maintains file format compatibility, but removes dependency on bleve, and
instead depends only on the indepenent interface modules:")
(license license:asl2.0)))
(define-public go-github-com-roaringbitmap-roaring
(package
(name "go-github-com-roaringbitmap-roaring")
(version "0.9.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/RoaringBitmap/roaring")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fpm6z725hvk09w5l7sxy0rzb0gwjz9404s2s7i8r6i6xp1fp470"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/RoaringBitmap/roaring"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-mschoch-smat
2021-12-30 23:18:41 +01:00
go-github-com-bits-and-blooms-bitset))
2021-12-31 10:10:08 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/RoaringBitmap/roaring")
(synopsis "roaring")
(description
"Package roaring is an implementation of Roaring Bitmaps in Go. They provide
fast compressed bitmap data structures (also called bitset). They are ideally
suited to represent sets of integers over relatively small ranges. See
@url{http://roaringbitmap.org,http://roaringbitmap.org} for details.")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-scorch-segment-api-v2
(package
(name "go-github-com-blevesearch-scorch-segment-api-v2")
(version "2.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/scorch_segment_api")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fyp83cvlrivw33hsgjfbc7jr6vlnkdaf4brdcn84ln3f9p5888j"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/scorch_segment_api/v2"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-davecgh-go-spew
go-github-com-blevesearch-bleve-index-api
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/scorch_segment_api")
(synopsis "Scorch Segment API")
(description "Scorch supports a pluggable Segment interface.")
(license license:asl2.0)))
(define-public go-github-com-bits-and-blooms-bitset
(package
(name "go-github-com-bits-and-blooms-bitset")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bits-and-blooms/bitset")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fiwz9v2b1xydgyajc7d1b2qnpsd664sijshz2f44gs8nvh8n6zi"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/bits-and-blooms/bitset"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/bits-and-blooms/bitset")
(synopsis "bitset")
(description
"Package bitset implements bitsets, a mapping between non-negative integers and
boolean values. It should be more efficient than map[uint] bool.")
(license license:bsd-3)))
(define-public go-github-com-blevesearch-vellum
(package
(name "go-github-com-blevesearch-vellum")
(version "1.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/vellum")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1jw4w9wp02rzcrp6h33271ravm1xjrldvadb4chylbzlji1a504m"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "vendor")))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/vellum"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-spf13-cobra
go-github-com-blevesearch-mmap-go
go-github-com-bits-and-blooms-bitset))
(home-page "https://github.com/blevesearch/vellum")
(synopsis "vellum")
(description
"Package vellum is a library for building, serializing and executing an FST
(finite state transducer).")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-zapx-v15
(package
(name "go-github-com-blevesearch-zapx-v15")
(version "15.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/zapx")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1gyc7i3svxj517yx964h91a4pmcvqk6zsm8kc1cn4y71ikxk6jx5"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/zapx/v15"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-golang-org-x-sys
go-github-com-spf13-cobra
go-github-com-golang-snappy
go-github-com-blevesearch-vellum
go-github-com-blevesearch-scorch-segment-api-v2
go-github-com-blevesearch-mmap-go
go-github-com-blevesearch-bleve-index-api
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/zapx")
(synopsis "zapx file format")
(description
"The zapx module is fork of @url{https://github.com/blevesearch/zap,zap} module
which maintains file format compatibility, but removes dependency on bleve, and
instead depends only on the indepenent interface modules:")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-mmap-go
(package
(name "go-github-com-blevesearch-mmap-go")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/mmap-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0lmrz1cqy2qc83rsgvcjpwl458pkpa7ksncjy4iy484493szvbxz"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/mmap-go"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/blevesearch/mmap-go")
(synopsis "mmap-go")
(description
"Package mmap allows mapping files into memory. It tries to provide a simple,
reasonably portable interface, but doesn't go out of its way to abstract away
every little platform detail. This specifically means:")
(license license:bsd-3)))
;; There are only a few Free Software commits after this tag.
(define-public go-github-com-couchbase-ghistogram
(package
(name "go-github-com-couchbase-ghistogram")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/couchbase/ghistogram")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "05nhcp5i8l9ndcf18bn58qgm6vh10d59xnxz6qikk0sajyy4r2s1"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/couchbase/ghistogram"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/couchbase/ghistogram")
(synopsis "ghistogram")
(description
"Simple histogram for golang that avoids runtime memory allocations.")
(license license:asl2.0)))
(define-public go-github-com-mschoch-smat
(package
(name "go-github-com-mschoch-smat")
(version "0.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mschoch/smat")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1qcb2jjg37krxmc915kqynghd6n26w2wxwgcafvxcwn8g0jx96qd"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/mschoch/smat"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/mschoch/smat")
(synopsis "smat â\x80\x93 State Machine Assisted Testing")
(description
"The concept is simple, describe valid uses of your library as states and
actions. States describe which actions are possible, and with what probability
they should occur. Actions mutate the context and transition to another state.")
(license license:asl2.0)))
;; This is the last Free Software release.
(define-public go-github-com-couchbase-moss
(package
(name "go-github-com-couchbase-moss")
(version "0.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/couchbase/moss")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "13ijal8f01rw8ivimz1f82q1l55m518jg0nq407dxj76lcrycqck"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/couchbase/moss"))
(propagated-inputs
(list go-github-com-mschoch-smat
go-github-com-couchbase-ghistogram
go-github-com-blevesearch-mmap-go))
(home-page "https://github.com/couchbase/moss")
(synopsis #f)
(description #f)
(license license:asl2.0)))
(define-public go-github-com-kljensen-snowball
(package
(name "go-github-com-kljensen-snowball")
(version "0.6.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/kljensen/snowball")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1frx5m042zgys7fkv6wj4pcg2ba63486v82pv4vlqaw9c3bxgibv"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/kljensen/snowball"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/kljensen/snowball")
(synopsis "Snowball")
(description
"This package provides a @url{http://golang.org,Go (golang)} implementation of
the @url{http://snowball.tartarus.org/,Snowball stemmer} for natural language
processing.")
(license license:expat)))
(define-public go-github-com-steveyen-gtreap
(package
(name "go-github-com-steveyen-gtreap")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/steveyen/gtreap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qim822f4f6r6ks1z3qvzxljjv6kzrz3bm5bixg6sjz1c2cqvj2j"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/steveyen/gtreap"))
(home-page "https://github.com/steveyen/gtreap")
(synopsis "gtreap")
(description
2021-12-31 10:10:08 +01:00
"gtreap is an immutable treap implementation in the Go Language")
2021-12-30 23:18:41 +01:00
(license license:expat)))
(define-public go-go-etcd-io-bbolt
(package
(name "go-go-etcd-io-bbolt")
(version "1.3.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/etcd-io/bbolt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0pj5245d417za41j6p09fmkbv05797vykr1bi9a6rnwddh1dbs8d"))))
(build-system go-build-system)
(arguments
`(#:import-path "go.etcd.io/bbolt"
;; Extending the test timeout to 30 minutes still times out on aarch64.
#:tests? ,(not target-arm?)))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://go.etcd.io/bbolt")
(synopsis "Embedded key/value database for Go")
(description "Bolt is a pure Go key/value store inspired by Howard Chu's
LMDB project. The goal of the project is to provide a simple, fast, and
reliable database for projects that don't require a full database server such as
Postgres or MySQL.")
(license license:expat)))
(define-public go-github-com-blevesearch-bleve-v2
(package
(name "go-github-com-blevesearch-bleve-v2")
2022-01-06 08:30:27 +01:00
(version "2.0.6")
2021-12-30 23:18:41 +01:00
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/bleve")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-06 08:30:27 +01:00
(base32 "1xpcckqk9c2jbz64r72w9nbpwvjhsc0rbiays523rgvgja3h4zpw"))
2021-12-30 23:18:41 +01:00
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "cmd/bleve/vendor")))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/bleve/v2"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-golang-org-x-text
go-go-etcd-io-bbolt
go-github-com-syndtr-goleveldb
go-github-com-steveyen-gtreap
go-github-com-spf13-cobra
go-github-com-rcrowley-go-metrics
go-github-com-kljensen-snowball
go-github-com-golang-protobuf-proto
go-github-com-couchbase-moss
go-github-com-blevesearch-zapx-v15
go-github-com-blevesearch-zapx-v14
go-github-com-blevesearch-zapx-v13
go-github-com-blevesearch-zapx-v12
go-github-com-blevesearch-zapx-v11
go-github-com-blevesearch-vellum
go-github-com-blevesearch-upsidedown-store-api
go-github-com-blevesearch-snowballstem
go-github-com-blevesearch-segment
go-github-com-blevesearch-scorch-segment-api-v2
go-github-com-blevesearch-go-porterstemmer
go-github-com-blevesearch-bleve-index-api
go-github-com-bits-and-blooms-bitset
go-github-com-roaringbitmap-roaring))
(home-page "https://github.com/blevesearch/bleve")
(synopsis "bleve")
(description "Package bleve is a library for indexing and searching text.")
(license license:asl2.0)))
(define-public go-github-com-blevesearch-bleve-index-api
(package
(name "go-github-com-blevesearch-bleve-index-api")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blevesearch/bleve_index_api")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fnfy1jj1qxk2gjvq4rrqj6yw8mmlibvhfm5qxv239sr23g42114"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/blevesearch/bleve_index_api"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/blevesearch/bleve_index_api")
(synopsis "Bleve Index API")
(description "Bleve supports a pluggable Index interface.")
(license license:asl2.0)))
(define-public go-github-com-ethantkoenig-rupture
(package
(name "go-github-com-ethantkoenig-rupture")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ethantkoenig/rupture")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1qc2rv4i1292f1fw3mfvf6zn9wy4nvbj6dla4lycdxdqvv066pd8"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/ethantkoenig/rupture"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-blevesearch-bleve-index-api
2021-12-30 23:18:41 +01:00
go-github-com-blevesearch-bleve-v2))
2021-12-31 10:10:08 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/ethantkoenig/rupture")
(synopsis "rupture")
(description
"An explosive companion to the
@url{https://www.github.com/blevesearch/bleve,bleve indexing library}")
(license license:expat)))
(define-public go-github-com-glycerine-go-unsnap-stream
(package
(name "go-github-com-glycerine-go-unsnap-stream")
(version "0.0.0-20210130063903-47dfef350d96")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/glycerine/go-unsnap-stream.git")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32
"1sqpjify17sjff92f8biwb9vnn443shk3zr9myzm8qscjpzkby3w"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/glycerine/go-unsnap-stream"
#:phases
(modify-phases %standard-phases
(add-before 'build 'patch-source
(lambda* (#:key import-path #:allow-other-keys)
(substitute* (string-append "src/" import-path "/unsnap_test.go")
2021-12-31 10:10:08 +01:00
(("/usr/bin/diff") (which "diff"))))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-github-com-golang-snappy))
(native-inputs
(list go-github-com-glycerine-goconvey
go-github.com-jtolds-gls))
(home-page "https://github.com/glycerine/go-unsnap-stream")
(synopsis "go-unsnap-stream")
(description
"This is a small golang library for decoding and encoding the snappy format,
specified here:
@url{https://github.com/google/snappy/blob/master/framing_format.txt,https://github.com/google/snappy/blob/master/framing_format.txt}")
(license license:expat)))
(define-public go-github-com-glycerine-goconvey
(package
(name "go-github-com-glycerine-goconvey")
(version "0.0.0-20190410193231-58a59202ab31")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/glycerine/goconvey.git")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32
"014cj82z42gaw863nrfmw39ff1z103n0aj5bs1fpx2iawgw5i6qh"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/glycerine/goconvey"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/glycerine/goconvey")
(synopsis "GoConvey is awesome Go testing")
(description #f)
(license license:expat)))
(define-public go-github-com-go-chi-chi
(package
(name "go-github-com-go-chi-chi")
(version "1.5.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-chi/chi")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1jpa4r5h15gkpfmb6xq1hamv0q20i8bdpw3kh7dw4n1v7pshjsr8"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/go-chi/chi"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-chi/chi")
(synopsis #f)
(description
"Package chi is a small, idiomatic and composable router for building HTTP
services.")
(license license:expat)))
(define-public go-github-com-go-chi-cors
(package
(name "go-github-com-go-chi-cors")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-chi/cors")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0p566jkmb88v8gqknphzqs5p1hznk5y6n0qc3zwcfc88vf584vh9"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/go-chi/cors"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-chi/cors")
(synopsis "CORS net/http middleware")
(description
"cors package is net/http handler to handle CORS related requests as defined by
@url{http://www.w3.org/TR/cors/,http://www.w3.org/TR/cors/}")
(license license:expat)))
(define-public go-github-com-go-enry-go-oniguruma
(package
(name "go-github-com-go-enry-go-oniguruma")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-enry/go-oniguruma")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1wlgs5qms988f4q1h30c08f3w7jlnz76dlkp2shf02prgv4qv00f"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/go-enry/go-oniguruma"))
2021-12-30 23:18:41 +01:00
(inputs
(list oniguruma))
(home-page "https://github.com/go-enry/go-oniguruma")
(synopsis "go-oniguruma")
(description
"This repository is a fork of
@url{https://github.com/moovweb/rubex/tree/go1,moovweb/rubex} - a simple regular
expression library (based on @url{https://github.com/kkos/oniguruma,oniguruma})
that supports Ruby's regex syntax.")
(license license:expat)))
(define-public go-github-com-go-enry-go-enry-v2
(package
(name "go-github-com-go-enry-go-enry-v2")
(version "2.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-enry/go-enry")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1dqmnay5z015192sl343wlx6nys0v91rn2lch728swxhp2qxrkx5"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/go-enry/go-enry/v2"))
(propagated-inputs
(list go-gopkg-in-yaml-v2
go-github-com-go-enry-go-oniguruma))
(native-inputs
(list git-minimal
go-github-com-stretchr-testify))
(home-page "https://github.com/go-enry/go-enry")
(synopsis "go-enry")
(description
"Package enry implements multiple strategies for programming language
identification.")
(license license:asl2.0)))
(define-public go-github-com-microsoft-go-winio
(package
(name "go-github-com-microsoft-go-winio")
(version "0.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/microsoft/go-winio")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "180fvli0g005bs7ahsm00w4b9nmz9qqkrqn7dy8wqfi7fph1ssff"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; Not on Windows.
#:import-path "github.com/Microsoft/go-winio"))
(propagated-inputs
(list go-golang-org-x-sys
go-github-com-sirupsen-logrus
go-github-com-pkg-errors))
(home-page "https://github.com/Microsoft/go-winio")
(synopsis "go-winio")
(description
"This repository contains utilities for efficiently performing Win32 IO
operations in Go. Currently, this is focused on accessing named pipes and other
file handles, and for using named pipes as a net transport.")
(license license:expat)))
(define-public go-github-com-protonmail-go-crypto
(package
(name "go-github-com-protonmail-go-crypto")
(version "0.0.0-20211221144345-a4f6767435ab")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ProtonMail/go-crypto")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "15bzf3abjy1s4mdqja574vxa70ap9inbfwfq4yz5jd5rb6dhin7j"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/ProtonMail/go-crypto"
#:tests? #f ; Not ready for go-1.17
#:phases
(modify-phases %standard-phases
(delete 'build)
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; from .travis.yml
(invoke "go" "test" "-short" "./...")
(invoke "go" "test" "./..." "-run" "RandomizeFast" "-count=512")
(invoke "go" "test" "./..." "-run" "RandomizeSlow" "-count=32")))))))
(propagated-inputs
(list go-golang-org-x-crypto))
(native-inputs
(list go-golang-org-x-net
go-golang-org-x-sync
go-golang-org-x-text
go-golang-org-x-tools))
(home-page "https://github.com/ProtonMail/go-crypto")
(synopsis #f)
(description
"This module is backwards compatible with x/crypto/openpgp, so you can simply
replace all imports of @code{golang.org/x/crypto/openpgp} with
@code{github.com/ProtonMail/go-crypto/openpgp}.")
(license license:bsd-3)))
(define-public go-github-com-matryer-is
(package
(name "go-github-com-matryer-is")
(version "1.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/matryer/is")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0bs452ba2qh2a9ir7r8ixpf2slc6vpyg0041v9kn5c0d1zbb5wsc"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/matryer/is"))
(home-page "https://github.com/matryer/is")
(synopsis "is")
(description
"Package is provides a lightweight extension to the standard library's testing
capabilities.")
(license license:expat)))
(define-public go-github-com-acomagu-bufpipe
(package
(name "go-github-com-acomagu-bufpipe")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/acomagu/bufpipe")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1a74sh8g3wmigxx2i0jcpysd46509ll4fw626wfzwrlrbbd1z144"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/acomagu/bufpipe"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-matryer-is))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/acomagu/bufpipe")
(synopsis #f)
(description #f)
(license #f)))
(define-public go-github-com-armon-go-socks5
(package
(name "go-github-com-armon-go-socks5")
(version "0.0.0-20160902184237-e75332964ef5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/armon/go-socks5")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "104w10jf0wlxyxi35hf6frndgf0ybz21h54xjmnkivpb6slycpyq"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments '(#:import-path "github.com/armon/go-socks5"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/armon/go-socks5")
(synopsis "go-socks5")
(description
"This package provides the @code{socks5} package that implements a
@url{http://en.wikipedia.org/wiki/SOCKS,SOCKS5 server}. SOCKS (Secure Sockets)
is used to route traffic between a client and server through an intermediate
proxy layer. This can be used to bypass firewalls or NATs.")
(license license:expat)))
(define-public go-github-com-flynn-go-shlex
(package
(name "go-github-com-flynn-go-shlex")
(version "0.0.0-20150515145356-3f9db97f8568")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/flynn-archive/go-shlex")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1j743lysygkpa2s2gii2xr32j7bxgc15zv4113b0q9jhn676ysia"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/flynn/go-shlex"))
(home-page "https://github.com/flynn/go-shlex")
(synopsis #f)
(description
"go-shlex is a simple lexer for go that supports shell-style quoting, commenting,
and escaping.")
(license license:asl2.0)))
(define-public go-github-com-anmitsu-go-shlex
(package
(name "go-github-com-anmitsu-go-shlex")
(version "0.0.0-20200514113438-38f4b401e2be")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/anmitsu/go-shlex")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "17iz68yzbnr7y4s493asbagbv79qq8hvl2pkxvm6bvdkgphj8w1g"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/anmitsu/go-shlex"))
(home-page "https://github.com/anmitsu/go-shlex")
(synopsis "go-shlex")
(description
"Package shlex provides a simple lexical analysis like Unix shell.")
(license license:expat)))
(define-public go-github-com-gliderlabs-ssh
(package
(name "go-github-com-gliderlabs-ssh")
(version "0.3.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gliderlabs/ssh")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "111xgg8gx9cd0wigml84zzysxywiygjr2vl934j8sy97hywchwvl"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/gliderlabs/ssh"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-golang-org-x-sys
go-golang-org-x-crypto
go-github-com-anmitsu-go-shlex))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/gliderlabs/ssh")
(synopsis "gliderlabs/ssh")
(description
"Package ssh wraps the crypto/ssh package with a higher-level API for building
SSH servers. The goal of the API was to make it as simple as using net/http, so
the API is very similar.")
(license license:bsd-3)))
(define-public go-github-com-go-git-go-billy-v5
(package
(name "go-github-com-go-git-go-billy-v5")
(version "5.3.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-git/go-billy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0x5z649f47lwsqw8578a5hvgjaxp0zz6cg184s0n68xdqhza3m2i"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-git/go-billy/v5"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gopkg-in-check-v1
go-golang-org-x-sys
go-github-com-niemeyer-pretty
go-github-com-kr-text))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-git/go-billy")
(synopsis "go-billy")
(description
"The missing interface filesystem abstraction for Go. Billy implements an
interface based on the @code{os} standard library, allowing to develop
applications without dependency on the underlying storage. Makes it virtually
free to implement mocks and testing over filesystem operations.")
(license license:asl2.0)))
(define-public go-github-com-go-git-go-git-fixtures-v4
(package
(name "go-github-com-go-git-go-git-fixtures-v4")
(version "4.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-git/go-git-fixtures")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0vxsyfrw4c0kqjbiycdx4xxpz8zjq69pwbsfxmcvkizpj87ywf9d"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:import-path "github.com/go-git/go-git-fixtures/v4"
#:phases
(modify-phases %standard-phases
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.t?gz$")))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gopkg-in-check-v1
go-github-com-go-git-go-billy-v5))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-git/go-git-fixtures")
(synopsis "go-git-fixtures")
(description
"git repository fixtures used by @url{https://github.com/go-git/go-git,go-git}")
(license license:asl2.0)))
(define-public go-gopkg-in-warnings-v0
(package
(name "go-gopkg-in-warnings-v0")
(version "0.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gopkg.in/warnings.v0")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1kzj50jn708cingn7a13c2wdlzs6qv89dr2h4zj8d09647vlnd81"))))
(build-system go-build-system)
(arguments
'(#:import-path
"gopkg.in/warnings.v0"
#:unpack-path
"gopkg.in/warnings.v0"))
(home-page "https://gopkg.in/warnings.v0")
(synopsis #f)
(description
"Package warnings implements error handling with non-fatal errors (warnings).")
(license license:bsd-2)))
(define-public go-github-com-go-git-go-git-v5
(package
(name "go-github-com-go-git-go-git-v5")
(version "5.4.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-git/go-git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "08kdknkrh9qks8qykmd1hmc573cb6qbb4b10f57k3kik4ygq2frj"))))
(build-system go-build-system)
2022-01-03 07:42:31 +01:00
(arguments
'(#:tests? #f ; Unlabeled test fails.
#:import-path "github.com/go-git/go-git/v5"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-network-tests
(lambda _
(setenv "GIT_AUTHOR_NAME" "Your Name")
(setenv "GIT_COMMITTER_NAME" "Your Name")
(setenv "GIT_AUTHOR_EMAIL" "you@example.com")
(setenv "GIT_COMMITTER_EMAIL" "you@example.com")
(substitute* "src/github.com/go-git/go-git/v5/blame_test.go"
(("TestBlame\\(" all) (string-append "Disable" all)))
(substitute* "src/github.com/go-git/go-git/v5/references_test.go"
(("TestEquivalent\\(" all) (string-append "Disable" all))
(("TestRevList\\(" all) (string-append "Disable" all)))
(substitute* "src/github.com/go-git/go-git/v5/remote_test.go"
(("TestFetchExactSHA1\\(" all) (string-append "Disable" all))
(("TestList\\(" all) (string-append "Disable" all)))
(substitute* "src/github.com/go-git/go-git/v5/repository_test.go"
(("TestConfigScoped\\(" all) (string-append "Disable" all)) ; Cannot find User.Email
(("TestCreateTagAnnotatedBadOpts\\(" all) (string-append "Disable" all))
(("TestPlainCloneWithRecurseSubmodules\\(" all) (string-append "Disable" all))
(("TestPushWithProgress\\(" all) (string-append "Disable" all)))
(substitute* "src/github.com/go-git/go-git/v5/submodule_test.go"
(("TestUpdate\\(" all) (string-append "Disable" all))
(("TestUpdateWithInitAndUpdate\\(" all) (string-append "Disable" all))
(("TestUpdateWithRecursion\\(" all) (string-append "Disable" all)))
(substitute* "src/github.com/go-git/go-git/v5/worktree_commit_test.go"
(("TestCommitEmptyOptions\\(" all) (string-append "Disable" all))) ; Cannot find author field.
(substitute* "src/github.com/go-git/go-git/v5/worktree_test.go"
(("TestCheckoutRelativePathSubmoduleInitialized\\(" all) (string-append "Disable" all))
(("TestCheckoutSubmoduleInitialized\\(" all) (string-append "Disable" all))
(("TestPullProgressWithRecursion\\(" all) (string-append "Disable" all))))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gopkg-in-warnings-v0
go-gopkg-in-check-v1
go-golang-org-x-text
2022-01-03 07:42:31 +01:00
go-golang-org-x-sys-next
2021-12-31 10:10:08 +01:00
go-golang-org-x-net
go-golang-org-x-crypto
go-github-com-xanzy-ssh-agent
go-github-com-sergi-go-diff
go-github-com-mitchellh-go-homedir
go-github-com-kevinburke-ssh-config
go-github-com-jessevdk-go-flags
go-github-com-jbenet-go-context
go-github-com-imdario-mergo
go-github-com-google-go-cmp
go-github-com-go-git-go-git-fixtures-v4
go-github-com-go-git-go-billy-v5
go-github-com-go-git-gcfg
go-github-com-gliderlabs-ssh
go-github-com-flynn-go-shlex
go-github-com-emirpasic-gods
go-github-com-armon-go-socks5
go-github-com-anmitsu-go-shlex
go-github-com-acomagu-bufpipe
go-github-com-protonmail-go-crypto
go-github-com-microsoft-go-winio))
2022-01-03 07:42:31 +01:00
(native-inputs
(list git-minimal))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-git/go-git")
(synopsis "Project Status")
(description
"This package provides a highly extensible git implementation in pure Go.")
(license license:asl2.0)))
(define-public go-github-com-go-ldap-ldap-v3
2021-12-31 10:10:08 +01:00
(deprecated-package "go-github-com-go-ldap-ldap-v3" go-github-com-go-ldap-ldap))
;(package
; (name "go-github-com-go-ldap-ldap-v3")
; (version "3.4.1")
; (source
; (origin
; (method git-fetch)
; (uri (git-reference
; (url "https://github.com/go-ldap/ldap")
; (commit (string-append "v" version))))
; (file-name (git-file-name name version))
; (sha256
; (base32 "1xf2jrwhgr06jy4liba48hrz4b7j27r7m9dnl7fj95vazsx2n5br"))))
; (build-system go-build-system)
; (arguments
; '(#:tests? #f ; Tests require network access.
; #:import-path "github.com/go-ldap/ldap/v3"))
; (propagated-inputs
; (list go-golang-org-x-crypto
; go-github-com-go-asn1-ber-asn1-ber
; go-github-com-azure-go-ntlmssp))
; (home-page "https://github.com/go-ldap/ldap")
; (synopsis #f)
; (description "Package ldap provides basic LDAP v3 functionality.")
; (license license:expat)))
2021-12-30 23:18:41 +01:00
(define-public go-github-com-dgryski-go-rendezvous
(package
(name "go-github-com-dgryski-go-rendezvous")
(version "0.0.0-20200823014737-9f7001d12a5f")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dgryski/go-rendezvous")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0hhdbsm5k19kh1fyxs4aibza9jylils4p3555lr8xalhj2iz3zlz"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/dgryski/go-rendezvous"))
(home-page "https://github.com/dgryski/go-rendezvous")
(synopsis #f)
(description #f)
(license license:expat)))
(define-public go-github-com-go-redis-redis-v8
(package
(name "go-github-com-go-redis-redis-v8")
(version "8.11.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-redis/redis")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1frzg6zywab6nnys1hwphx39ipimpqi8czpjkxb7gcd2pvqs4pnr"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:tests? #f ; TODO: fix
#:import-path "github.com/go-redis/redis/v8"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-onsi-gomega
go-github-com-onsi-ginkgo
go-github-com-google-go-cmp
go-github-com-dgryski-go-rendezvous
go-github-com-cespare-xxhash-v2))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-redis/redis")
(synopsis "Redis client for Golang")
(description "Package redis implements a Redis client.")
(license license:bsd-2)))
(define-public go-github-com-coreos-go-oidc
(package
(name "go-github-com-coreos-go-oidc")
(version "2.2.1+incompatible")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coreos/go-oidc")
(commit (string-append "v" (go-version->git-ref version)))))
(file-name (git-file-name name version))
(sha256
(base32 "11m6slbpi33ynffml7812piq4anhjlf1qszjlsf26f5y7x3qh8n5"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/coreos/go-oidc"))
2021-12-31 10:10:08 +01:00
(propagated-inputs
(list go-github-com-pquerna-cachecontrol
go-golang-org-x-oauth2
go-gopkg-in-square-go-jose-v2))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/coreos/go-oidc")
(synopsis "go-oidc")
(description
"Package oidc implements OpenID Connect client logic for the golang.org/x/oauth2
package.")
(license license:asl2.0)))
(define-public go-github-com-dgrijalva-jwt-go
(package
(name "go-github-com-dgrijalva-jwt-go")
(version "3.2.0+incompatible")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dgrijalva/jwt-go")
(commit (string-append "v" (go-version->git-ref version)))))
(file-name (git-file-name name version))
(sha256
(base32 "08m27vlms74pfy5z79w67f9lk9zkx6a9jd68k3c4msxy75ry36mp"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/dgrijalva/jwt-go"))
(home-page "https://github.com/dgrijalva/jwt-go")
(synopsis "jwt-go")
(description
"Package jwt is a Go implementation of JSON Web Tokens:
@url{http://self-issued.info/docs/draft-jones-json-web-token.html,http://self-issued.info/docs/draft-jones-json-web-token.html}")
(license license:expat)))
(define-public go-github-com-go-openapi-inflect
(package
(name "go-github-com-go-openapi-inflect")
(version "0.19.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/inflect")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1bsv7cb9ylkgglcn5nk99v417c1120523v2pgp5nqir8sgsplbwd"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/inflect"))
(home-page "https://github.com/go-openapi/inflect")
(synopsis #f)
(description #f)
(license license:expat)))
(define-public go-github-com-go-openapi-analysis
(package
(name "go-github-com-go-openapi-analysis")
(version "0.21.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/analysis")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1plnyj0lmjn2x3r4isvc1rr957i7i4xkc8mmf5mrrc102g6dpfzn"))))
(build-system go-build-system)
2022-01-02 00:26:55 +01:00
(arguments
'(#:import-path "github.com/go-openapi/analysis"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-network-tests
(lambda _
(substitute* "src/github.com/go-openapi/analysis/flatten_test.go"
(("TestFlatten_RemoteAbsolute") "DisableTestFlatten_RemoteAbsolute")))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gopkg-in-yaml-v3
go-github-com-mitchellh-mapstructure
go-github-com-go-openapi-swag
go-github-com-go-openapi-strfmt
go-github-com-go-openapi-spec
go-github-com-go-openapi-jsonpointer
go-github-com-go-openapi-errors))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/analysis")
(synopsis "OpenAPI initiative analysis")
(description
"Package analysis provides methods to work with a Swagger specification document
from package go-openapi/spec.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-loads
(package
(name "go-github-com-go-openapi-loads")
(version "0.21.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/loads")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0n2bwrc00dn5a4vyni60h820qv9w2r1jpy8g1d4n0l5z8cfdmmp2"))))
(build-system go-build-system)
2022-01-02 00:26:55 +01:00
(arguments
'(#:tests? #f ; Test requirements introduce circular dependencies.
#:import-path "github.com/go-openapi/loads"))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2022-01-02 00:26:55 +01:00
(list ;go-gopkg-in-yaml-v2
go-github-com-go-openapi-swag
go-github-com-go-openapi-strfmt
go-github-com-go-openapi-spec
go-github-com-go-openapi-analysis))
;(native-inputs
; (list go-github-com-go-openapi-validate
; go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/loads")
(synopsis "Loads OAI specs")
(description
"Package loads provides document loading methods for swagger (OAI)
specifications.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-runtime
(package
(name "go-github-com-go-openapi-runtime")
(version "0.21.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/runtime")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0kb7n45a8b3h2fxf50wmw2bpp4zlz830gx44jvr97qhrbv6m7hv2"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/runtime"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list ;go-gopkg-in-yaml-v2
;go-github-com-opentracing-opentracing-go
;go-github-com-go-openapi-validate
go-github-com-go-openapi-swag
go-github-com-go-openapi-strfmt
;go-github-com-go-openapi-spec
;go-github-com-go-openapi-loads
go-github-com-go-openapi-errors
;go-github-com-go-openapi-analysis
;go-github-com-docker-go-units
2021-12-30 23:18:41 +01:00
))
2022-01-02 00:26:55 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/runtime")
(synopsis "runtime")
(description
"The runtime component for use in codegeneration or as untyped usage.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-jsonreference
(package
(name "go-github-com-go-openapi-jsonreference")
(version "0.19.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/jsonreference")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1b4xg5ghzlzd6ricc3jwmlp71hxz1mgg54mgywzzqwyzvpbwn7n9"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/jsonreference"))
(propagated-inputs
2022-01-02 00:26:55 +01:00
(list ;go-golang-org-x-net
go-github-com-go-openapi-jsonpointer
;go-github-com-puerkitobio-urlesc
go-github-com-puerkitobio-purell))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/jsonreference")
(synopsis "gojsonreference")
(description
"An implementation of JSON Reference - Go language")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-spec
(package
(name "go-github-com-go-openapi-spec")
(version "0.20.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/spec")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-02 00:26:55 +01:00
(base32 "1gc92i6y9rcnzx1pz7q0k3s16pgpgmzgjyqvqzlyrds59jxc165s"))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/spec"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list ;go-gopkg-in-yaml-v2
;go-golang-org-x-text
go-github-com-go-openapi-swag
go-github-com-go-openapi-jsonreference
2022-01-02 00:26:55 +01:00
go-github-com-go-openapi-jsonpointer))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/spec")
(synopsis "OAI object model")
(description "The object model for OpenAPI specification documents.")
(license license:asl2.0)))
(define-public go-github-com-asaskevich-govalidator
(package
(name "go-github-com-asaskevich-govalidator")
(version "0.0.0-20210307081110-f21760c49a8d")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/asaskevich/govalidator")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0aab1pym5c6di8vidynp6ly5j4kcqv6lp2737gw0a07zng0nn8lw"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:tests? #f ; Tests fail on go-1.17+
#:import-path "github.com/asaskevich/govalidator"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/asaskevich/govalidator")
(synopsis "govalidator")
(description
"Package govalidator is package of validators and sanitizers for strings, structs
and collections.")
(license license:expat)))
(define-public go-github-com-go-openapi-errors
2021-12-31 10:10:08 +01:00
;; Fixes test error related to a previous api change.
(let ((commit "b45e39dc92fa5448ebf1564c0f4e680f2067cdf5")
(revision "1"))
(package
(name "go-github-com-go-openapi-errors")
(version (git-version "0.20.1" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/errors")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0c669p3g0bfcmnmxvc382j5amvah9m5psp59rmgyp6gryci0pxwy"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/errors"))
(propagated-inputs
`(;("go-gopkg-in-yaml-v3" ,go-gopkg-in-yaml-v3)
;("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)
;("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)
;("go-github-com-niemeyer-pretty" ,go-github-com-niemeyer-pretty)
;("go-github-com-kr-text" ,go-github-com-kr-text)
;("go-github-com-davecgh-go-spew" ,go-github-com-davecgh-go-spew)
))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/go-openapi/errors")
(synopsis "OpenAPI errors")
(description
"Package errors provides an Error interface and several concrete types
2021-12-30 23:18:41 +01:00
implementing this interface to manage API errors and JSON-schema validation
errors.")
2021-12-31 10:10:08 +01:00
(license license:asl2.0))))
2021-12-30 23:18:41 +01:00
(define-public go-github-com-go-openapi-strfmt
(package
(name "go-github-com-go-openapi-strfmt")
(version "0.21.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/strfmt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0vq9ri0ycy345nygswwsy8y0xyf1alcqjwb8s5kllnvjv8z1rch9"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/strfmt"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-go-mongodb-org-mongo-driver
go-github-com-oklog-ulid
go-github-com-mitchellh-mapstructure
2022-01-02 00:26:55 +01:00
go-github-com-google-uuid
2021-12-31 10:10:08 +01:00
go-github-com-go-openapi-errors
2022-01-02 00:26:55 +01:00
go-github-com-asaskevich-govalidator))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/strfmt")
(synopsis "Strfmt")
(description "Package strfmt contains custom string formats")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-validate
(package
(name "go-github-com-go-openapi-validate")
(version "0.20.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/validate")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1arhy8ri87pnckqxvv8ny824jgnvga24ihz097112nbfxvgr3gml"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/validate"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list ;go-gopkg-in-yaml-v3
;go-gopkg-in-yaml-v2
go-github-com-go-openapi-swag
go-github-com-go-openapi-strfmt
go-github-com-go-openapi-spec
go-github-com-go-openapi-runtime
go-github-com-go-openapi-loads
go-github-com-go-openapi-jsonpointer
go-github-com-go-openapi-errors
2022-01-02 00:26:55 +01:00
go-github-com-go-openapi-analysis))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/validate")
(synopsis "Validation helpers")
(description
2022-01-02 00:26:55 +01:00
"Package validate provides methods to validate a swagger specification, as well
2021-12-30 23:18:41 +01:00
as tools to validate data against their schema.")
(license license:asl2.0)))
(define-public go-github-com-go-swagger-scan-repo-boundary
(package
(name "go-github-com-go-swagger-scan-repo-boundary")
(version "0.0.0-20180623220736-973b3573c013")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-swagger/scan-repo-boundary")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ipqv53s9piq5v5nsjmg8v7pzz4zinv2xkif7h0na84i9pnsccyn"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:unpack-path "github.com/go-swagger/scan-repo-boundary"
#:import-path "github.com/go-swagger/scan-repo-boundary/makeplans"))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-swagger/scan-repo-boundary")
(synopsis "TestRepo")
(description
"This is a repo that is used in the tests of the go-swagger project. It's is
only here to test finding files across repository boundaries.")
(license license:asl2.0)))
(define-public go-github-com-jessevdk-go-flags
(package
(name "go-github-com-jessevdk-go-flags")
(version "1.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jessevdk/go-flags")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "13ixw1yx4bvcj66lkc8zgwf9j7gkvj686g991gycdsafvdvca0lj"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:import-path "github.com/jessevdk/go-flags"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
;; SOURCE_DATE_EPOCH messes with the date on the man page test.
(substitute* "src/github.com/jessevdk/go-flags/help_test.go"
(("TestMan") "DisabledTestMan")))))))
(propagated-inputs
(list go-golang-org-x-sys))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/jessevdk/go-flags")
(synopsis "go-flags: a go library for parsing command line arguments")
(description
"Package flags provides an extensive command line option parser. The flags
package is similar in functionality to the go built-in flag package but provides
more options and uses reflection to provide a convenient and succinct way of
specifying command line options.")
(license license:bsd-3)))
(define-public go-github-com-pquerna-cachecontrol
(package
(name "go-github-com-pquerna-cachecontrol")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pquerna/cachecontrol")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ds4wgk6hm1sd6037dww5zm59syzs7vrdzh9q5x78s1lfrznsi3k"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/pquerna/cachecontrol"))
2021-12-31 10:10:08 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/pquerna/cachecontrol")
(synopsis "cachecontrol: HTTP Caching Parser and Interpretation")
(description "Package cachecontrol implements the logic for HTTP Caching")
(license license:asl2.0)))
(define-public go-github-com-toqueteos-webbrowser
(package
(name "go-github-com-toqueteos-webbrowser")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/toqueteos/webbrowser")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1j2hz0mq06v4vxksssg20yb34wwh24l55v2x7nplksfri1rmwbn0"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/toqueteos/webbrowser"))
(home-page "https://github.com/toqueteos/webbrowser")
(synopsis "webbrowser")
(description
"Package webbrowser provides a simple API for opening web pages on your default
browser.")
(license license:expat)))
(define-public go-github-com-go-stack-stack
(package
(name "go-github-com-go-stack-stack")
(version "1.8.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-stack/stack")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "01m6l9w84yq2yyly8bdfsgc386hla1gn9431c7vr3mfa3bchj5wb"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-stack/stack"))
(home-page "https://github.com/go-stack/stack")
(synopsis "stack")
(description
"Package stack implements utilities to capture, manipulate, and format call
stacks. It provides a simpler API than package runtime.")
(license license:expat)))
(define-public go-github-com-montanaflynn-stats
(package
(name "go-github-com-montanaflynn-stats")
(version "0.6.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/montanaflynn/stats")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0r0ad2275saw79kgh3ywafii8f6rja2z6mzm9izs11k2lvkqpz6z"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/montanaflynn/stats"))
(home-page "https://github.com/montanaflynn/stats")
(synopsis "Stats - Golang Statistics Package")
(description
"Package stats is a well tested and comprehensive statistics library package with
no dependencies.")
(license license:expat)))
(define-public go-github-com-tidwall-pretty
(package
(name "go-github-com-tidwall-pretty")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tidwall/pretty")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11zi5hxb75yapgxq67r4lmv8n910iqmw7994ig1fy4gnr4d51i3s"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/tidwall/pretty"))
(home-page "https://github.com/tidwall/pretty")
(synopsis "Pretty")
(description
"Pretty is a Go package that provides @url{#readme-performance,fast} methods for
formatting JSON for human readability, or to compact JSON for smaller payloads.")
(license license:expat)))
(define-public go-github-com-xdg-go-pbkdf2
(package
(name "go-github-com-xdg-go-pbkdf2")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xdg-go/pbkdf2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1nipijy5xkdnfyhkp5ryrjzm14si1i2v2xyfmblf84binwkbr8jh"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/xdg-go/pbkdf2"))
(home-page "https://github.com/xdg-go/pbkdf2")
(synopsis "pbkdf2 â\x80\x93Â\xa0Go implementation of PBKDF2")
(description
"Package pbkdf2 implements password-based key derivation using the PBKDF2
algorithm described in @url{https://rfc-editor.org/rfc/rfc2898.html,RFC 2898}
and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.")
(license license:asl2.0)))
(define-public go-github-com-xdg-go-scram
(package
(name "go-github-com-xdg-go-scram")
(version "1.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xdg-go/scram")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1jyv4qgc1dgh3v96pazmgljpp9ij25k8hwn0v4fck18g16i0nccm"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/xdg-go/scram"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-xdg-go-stringprep
go-github-com-xdg-go-pbkdf2))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/xdg-go/scram")
(synopsis "scram â\x80\x93Â\xa0Go implementation of RFC-5802")
(description
"Package scram provides client and server implementations of the Salted Challenge
Response Authentication Mechanism (SCRAM) described in RFC-5802 and RFC-7677.")
(license license:asl2.0)))
(define-public go-github-com-xdg-go-stringprep
(package
(name "go-github-com-xdg-go-stringprep")
(version "1.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xdg-go/stringprep")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1df0l5n3c520y9filzz83j42wa5c056jcygmfwhjyf1pq8f6jkv9"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/xdg-go/stringprep"))
2021-12-31 10:10:08 +01:00
(propagated-inputs
(list go-golang-org-x-text))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/xdg-go/stringprep")
(synopsis
"stringprep â\x80\x93Â\xa0Go implementation of RFC-3454 stringprep and RFC-4013 SASLprep")
(description
"Package stringprep provides data tables and algorithms for RFC-3454, including
errata (as of 2018-02). It also provides a profile for SASLprep as defined in
RFC-4013.")
(license license:asl2.0)))
(define-public go-github-com-youmark-pkcs8
(package
(name "go-github-com-youmark-pkcs8")
(version "0.0.0-20201027041543-1326539a0a0a")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/youmark/pkcs8")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1bk20x279iiafxh39v75hrmxncbkmw17603g8xw5b59cqzzpnrmv"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/youmark/pkcs8"))
2021-12-31 10:10:08 +01:00
(propagated-inputs
(list go-golang-org-x-crypto))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/youmark/pkcs8")
(synopsis "pkcs8")
(description
"Package pkcs8 implements functions to parse and convert private keys in PKCS#8
format, as defined in RFC5208 and RFC5958")
(license license:expat)))
(define-public go-go-mongodb-org-mongo-driver
(package
(name "go-go-mongodb-org-mongo-driver")
(version "1.8.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mongodb/mongo-go-driver")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-02 00:26:55 +01:00
(base32 "1g3nbnkkfgy8rr6h6c95r1kv6kib4wbmw3f5p77v0hq6qp0xwndj"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "vendor")))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
2022-01-02 00:26:55 +01:00
(arguments
'(#:import-path "go.mongodb.org/mongo-driver"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-append "go.mongodb.org/mongo-driver/" directory)))
(list "bson"
"internal"
"mongo"
"x/bsonx"
"x/mongo/driver"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-append "go.mongodb.org/mongo-driver/" directory)))
(list "bson"
"internal"
;"mongo" ; Wants a running mongodb server.
"x/bsonx"
"x/mongo/driver"))))
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.gz$")))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gopkg-in-check-v1
go-golang-org-x-tools
go-golang-org-x-sync
go-golang-org-x-crypto
go-github-com-youmark-pkcs8
go-github-com-xdg-go-stringprep
go-github-com-xdg-go-scram
go-github-com-tidwall-pretty
go-github-com-pkg-errors
go-github-com-montanaflynn-stats
go-github-com-kr-pretty
go-github-com-klauspost-compress
go-github-com-google-go-cmp
go-github-com-golang-snappy
go-github-com-go-stack-stack
go-github-com-davecgh-go-spew))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://go.mongodb.org/mongo-driver")
(synopsis "MongoDB Go Driver")
(description "The MongoDB supported driver for Go.")
(license license:asl2.0)))
(define-public go-gopkg-in-square-go-jose-v2
(package
(name "go-gopkg-in-square-go-jose-v2")
(version "2.6.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gopkg.in/square/go-jose.v2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1b1nhqxfmhzwrfk7pkvp2w3z3d0pf5ir00vizmy2d4xdbnldn70r"))))
(build-system go-build-system)
(arguments
2021-12-31 10:10:08 +01:00
'(#:import-path "gopkg.in/square/go-jose.v2"
#:phases
(modify-phases %standard-phases
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.gz$")))))))
(propagated-inputs
(list go-golang-org-x-crypto))
(native-inputs
(list go-github-com-google-go-cmp
go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://gopkg.in/square/go-jose.v2")
(synopsis "Go JOSE")
(description
"Package jose aims to provide an implementation of the Javascript Object Signing
and Encryption set of standards. It implements encryption and signing based on
the JSON Web Encryption and JSON Web Signature standards, with optional JSON Web
Token support available in a sub-package. The library supports both the compact
and full serialization formats, and has optional support for multiple
recipients.")
(license license:asl2.0)))
(define-public go-github-com-puerkitobio-purell
(package
(name "go-github-com-puerkitobio-purell")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PuerkitoBio/purell")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0c525frsxmalrn55hzzsxy17ng8avkd40ga0wxfw9haxsdjgqdqy"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/PuerkitoBio/purell"))
2022-01-02 00:26:55 +01:00
(propagated-inputs
(list go-github-com-puerkitobio-urlesc
go-golang-org-x-net
go-golang-org-x-text))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/PuerkitoBio/purell")
(synopsis "Purell")
(description
"Package purell offers URL normalization as described on the wikipedia page:
@url{http://en.wikipedia.org/wiki/URL_normalization,http://en.wikipedia.org/wiki/URL_normalization}")
(license license:bsd-3)))
(define-public go-github-com-puerkitobio-urlesc
(package
(name "go-github-com-puerkitobio-urlesc")
(version "0.0.0-20170810143723-de5bf2ad4578")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PuerkitoBio/urlesc")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0n0srpqwbaan1wrhh2b7ysz543pjs1xw2rghvqyffg9l0g8kzgcw"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/PuerkitoBio/urlesc"))
(home-page "https://github.com/PuerkitoBio/urlesc")
(synopsis "urlesc")
(description
"Package urlesc implements query escaping as per
@url{https://rfc-editor.org/rfc/rfc3986.html,RFC 3986}. It contains some parts
of the net/url package, modified so as to allow some reserved characters
incorrectly escaped by net/url. See
@url{https://github.com/golang/go/issues/5684,https://github.com/golang/go/issues/5684}")
(license license:bsd-3)))
(define-public go-github-com-docker-go-units
(package
(name "go-github-com-docker-go-units")
(version "0.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/docker/go-units")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0k8gja8ql4pqg5rzmqvka42vjfs6rzablak87whcnqba6qxpimvz"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/docker/go-units"))
(home-page "https://github.com/docker/go-units")
(synopsis "Introduction")
(description
"Package units provides helper function to parse and print size and time units in
human-readable format.")
(license license:asl2.0)))
(define-public go-github-com-niemeyer-pretty
(package
(name "go-github-com-niemeyer-pretty")
(version "0.0.0-20200227124842-a10e7caefd8e")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/niemeyer/pretty")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1jmazh4xzaa3v6g46hz60q2z7nmqs9l9cxdzmmscn3kbcs2znq4v"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; TODO: Fix
#:import-path "github.com/niemeyer/pretty"))
(propagated-inputs
(list go-github-com-kr-text))
(home-page "https://github.com/niemeyer/pretty")
(synopsis #f)
(description
"Package pretty provides pretty-printing for Go values. This is useful during
debugging, to avoid wrapping long output lines in the terminal.")
(license license:expat)))
(define-public go-github-com-shurcool-go-goon
(package
(name "go-github-com-shurcool-go-goon")
(version "0.0.0-20210110234559-7585751d9a17")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/shurcooL/go-goon")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1c0gkv255kjbbcx3ab26driihnq685vp08axrp5ls8vq7g67rrwl"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/shurcooL/go-goon"))
(home-page "https://github.com/shurcooL/go-goon")
(synopsis "goon")
(description
"Package goon is a deep pretty printer with Go-like notation. It implements the
goon specification.")
(license license:expat)))
(define-public go-github-com-sourcegraph-go-diff
(package
(name "go-github-com-sourcegraph-go-diff")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sourcegraph/go-diff")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ic58wi4cac61kh5sasn9iylcbzbqawlzva964rk0y0nifsyjcmc"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/sourcegraph/go-diff"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-shurcool-go-goon
go-github-com-shurcool-go
go-github-com-google-go-cmp))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/sourcegraph/go-diff")
(synopsis "go-diff")
(description "Diff parser and printer for Go.")
(license license:expat)))
(define-public go-github-com-go-openapi-swag
(package
(name "go-github-com-go-openapi-swag")
(version "0.19.15")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/swag")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fyz1wclcc776qwh6qnnajgfa3l8rwp3y6dzyrfb8cfnc3j0jqim"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:tests? #f ; Test suite not ready for go-1.17+
#:import-path "github.com/go-openapi/swag"))
(propagated-inputs
(list ;go-github-com-sourcegraph-go-diff
;go-golang-org-x-lint
;go-gopkg-in-yaml-v3
go-gopkg-in-yaml-v2
;go-gopkg-in-check-v1
;go-github-com-niemeyer-pretty
go-github-com-mailru-easyjson
;go-github-com-kr-text
;go-github-com-davecgh-go-spew
2021-12-30 23:18:41 +01:00
))
2021-12-31 10:10:08 +01:00
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/swag")
(synopsis "Swag")
(description
"Package swag contains a bunch of helper functions for go-openapi and go-swagger
projects.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-jsonpointer
(package
(name "go-github-com-go-openapi-jsonpointer")
(version "0.19.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/jsonpointer")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2021-12-31 10:10:08 +01:00
(base32 "0azic9nfwywlz4qxvacyi4g668fbbrkcyv15bag02yfcsi8szg5c"))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-openapi/jsonpointer"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list ;go-github-com-stretchr-testify
;go-github-com-mailru-easyjson
go-github-com-go-openapi-swag))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-openapi/jsonpointer")
(synopsis "gojsonpointer")
(description
"An implementation of JSON Pointer - Go language")
(license license:asl2.0)))
(define-public go-github-com-oklog-ulid
(package
(name "go-github-com-oklog-ulid")
(version "1.3.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/oklog/ulid")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
2022-01-04 08:15:43 +01:00
(base32 "0hybwyid820n80axrk863k2py93hbqlq6hxhf84ppmz0qd0ys0gq"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "vendor")))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
(arguments '(#:import-path "github.com/oklog/ulid"))
(home-page "https://github.com/oklog/ulid")
(synopsis "Universally Unique Lexicographically Sortable Identifier")
(description
"This package provides a Go port of
@url{https://github.com/alizain/ulid,alizain/ulid} with binary format
implemented.")
(license license:asl2.0)))
(define-public go-gotest-tools
(package
(name "go-gotest-tools")
(version "1.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gotestyourself/gotest.tools")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ykgj2rpi3yha9rd23abx2885rm72jarhpgw1hkasmrb9i7j6nqk"))))
(build-system go-build-system)
(arguments '(#:import-path "gotest.tools"))
(home-page "https://gotest.tools")
(synopsis "gotest.tools")
(description
"Package gotesttools is a collection of packages to augment `testing` and support
common patterns.")
(license license:asl2.0)))
(define-public go-github-com-go-swagger-go-swagger
(package
(name "go-github-com-go-swagger-go-swagger")
(version "0.28.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-swagger/go-swagger")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1q37h3455bk8dwl6p85rjqlyl8sqwqap6da30h9cf8vb1hfkh3q7"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-swagger/go-swagger"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gotest-tools
go-gopkg-in-yaml-v3
go-gopkg-in-ini-v1
go-google-golang-org-appengine
go-golang-org-x-xerrors
go-github-com-subosito-gotenv
go-github-com-spf13-jwalterweatherman
go-github-com-spf13-afero
go-github-com-pmezard-go-difflib
go-github-com-pelletier-go-toml
go-github-com-opentracing-opentracing-go
go-github-com-oklog-ulid
go-github-com-magiconair-properties
go-github-com-kr-text
go-github-com-josharian-intern
go-github-com-inconshreveable-mousetrap
go-github-com-hashicorp-hcl
go-github-com-google-go-cmp
go-github-com-golang-protobuf
go-github-com-go-openapi-jsonpointer
go-github-com-docker-go-units
go-github-com-puerkitobio-urlesc
go-github-com-puerkitobio-purell
go-gopkg-in-yaml-v2
go-gopkg-in-square-go-jose-v2
go-google-golang-org-protobuf
go-golang-org-x-tools
go-golang-org-x-text
go-golang-org-x-sys
go-golang-org-x-oauth2
go-golang-org-x-net
go-golang-org-x-mod
go-golang-org-x-crypto
go-go-mongodb-org-mongo-driver
go-github-com-toqueteos-webbrowser
go-github-com-spf13-viper
go-github-com-spf13-pflag
go-github-com-spf13-cobra
go-github-com-spf13-cast
go-github-com-rogpeppe-go-internal
go-github-com-pquerna-cachecontrol
go-github-com-pkg-errors
go-github-com-mitchellh-mapstructure
go-github-com-mitchellh-go-homedir
go-github-com-mailru-easyjson
go-github-com-kr-pretty
go-github-com-jessevdk-go-flags
go-github-com-gorilla-handlers
go-github-com-go-swagger-scan-repo-boundary
go-github-com-go-stack-stack
go-github-com-go-openapi-validate
go-github-com-go-openapi-swag
go-github-com-go-openapi-strfmt
go-github-com-go-openapi-spec
go-github-com-go-openapi-runtime
go-github-com-go-openapi-loads
go-github-com-go-openapi-jsonreference
go-github-com-go-openapi-inflect
go-github-com-go-openapi-errors
go-github-com-go-openapi-analysis
go-github-com-fsnotify-fsnotify
go-github-com-felixge-httpsnoop
go-github-com-dgrijalva-jwt-go
go-github-com-davecgh-go-spew
go-github-com-coreos-go-oidc
go-github-com-asaskevich-govalidator))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-swagger/go-swagger")
(synopsis "Swagger 2.0")
(description
"Package swagger (2.0) provides a powerful interface to your API")
(license license:asl2.0)))
(define-public go-github-com-joho-godotenv
(package
(name "go-github-com-joho-godotenv")
(version "1.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/joho/godotenv")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1036h59vyhb58n817az6yg0zw5wa87yb86i7fnbdq8cw46mnjgw8"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/joho/godotenv"))
(home-page "https://github.com/joho/godotenv")
(synopsis "GoDotEnv")
(description
"Package godotenv is a go port of the ruby dotenv library
(@url{https://github.com/bkeepers/dotenv,https://github.com/bkeepers/dotenv})")
(license license:expat)))
(define-public go-github-com-go-testfixtures-testfixtures-v3
(package
(name "go-github-com-go-testfixtures-testfixtures-v3")
(version "3.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-testfixtures/testfixtures")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1mcxvr1lhcf8bkwcy5ngrc5l2cfan435vrnm1byy4ifkyw1g9l5k"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/go-testfixtures/testfixtures/v3"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-gopkg-in-yaml-v2
;go-golang-org-x-crypto
;go-github-com-spf13-pflag
;go-github-com-mattn-go-sqlite3
;go-github-com-lib-pq
;go-github-com-jackc-pgx-v4
;go-github-com-go-sql-driver-mysql
;go-github-com-denisenkom-go-mssqldb
))
(native-inputs
(list go-github-com-joho-godotenv))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/go-testfixtures/testfixtures")
(synopsis "testfixtures")
(description
"Writing tests is hard, even more when you have to deal with an SQL database.
This package aims to make writing functional tests for web apps written in Go
easier.")
(license license:expat)))
(define-public go-github-com-gogs-chardet
(package
(name "go-github-com-gogs-chardet")
(version "0.0.0-20211120154057-b7413eaefb8f")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gogs/chardet")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "12j8q5wc9m4n51v2j2m40nahqdl9bh3hzpdp26clzq91kc2amiz0"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/gogs/chardet"))
(home-page "https://github.com/gogs/chardet")
(synopsis "chardet")
(description "Package chardet ports character set detection from ICU.")
(license license:expat)))
(define-public go-github-com-gogs-cron
(package
(name "go-github-com-gogs-cron")
(version "0.0.0-20171120032916-9f6c956d3e14")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gogs/cron")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "06nxf8c5rxjjzprpdyiq2pyhckqhgn6ad22hmrxmzyd7z6y34xcj"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/gogs/cron"))
(home-page "https://github.com/gogs/cron")
(synopsis #f)
(description "Package cron implements a cron spec parser and job runner.")
(license license:expat)))
(define-public go-github-com-gogs-go-gogs-client
(package
(name "go-github-com-gogs-go-gogs-client")
(version "0.0.0-20210131175652-1d7215cd8d85")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gogs/go-gogs-client")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "11b8mwdly960z7jdx297jywxzljs0l0sl3i1qvii1fjzis7k608l"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/gogs/go-gogs-client"))
(home-page "https://github.com/gogs/go-gogs-client")
(synopsis "Gogs API client in Go")
(description
"This package is still in experiment, see
@url{https://github.com/gogits/go-gogs-client/wiki,Wiki} for documentation.")
(license license:expat)))
(define-public go-github-com-google-go-github-v32
(package
(name "go-github-com-google-go-github-v32")
(version "32.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/go-github")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qaxcm2p655r1jd59rv1hd58driadw5hxlfy7h53c7pzcsmf2546"))))
(build-system go-build-system)
2022-01-03 07:42:31 +01:00
(arguments
'(#:import-path "github.com/google/go-github/v32"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-append "github.com/google/go-github/v32/" directory)))
(list "github"
;"scrape" ; Wants go-github-com-google-go-github-v28
"test/fields"
"test/integration"
"update-urls"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-append "github.com/google/go-github/v32/" directory)))
(list "github"
;"scrape" ; Wants go-github-com-google-go-github-v28
"test/fields"
"test/integration"
"update-urls"))))
(add-after 'unpack 'disable-network-tests
(lambda _
(substitute* "src/github.com/google/go-github/v32/github/repos_releases_test.go"
(("TestRepositoriesService_UploadReleaseAsset" all)
(string-append "Disabled" all))))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-google-golang-org-appengine
go-golang-org-x-oauth2
go-golang-org-x-net
go-golang-org-x-crypto
go-github-com-google-go-querystring
go-github-com-golang-protobuf))
2022-01-03 07:42:31 +01:00
(native-inputs
(list go-github-com-pmezard-go-difflib))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/google/go-github")
(synopsis "go-github")
(description
"go-github is a Go client library for accessing the
@url{https://developer.github.com/v3/,GitHub API v3}.")
(license license:bsd-3)))
(define-public go-github-com-issue9-assert
(package
(name "go-github-com-issue9-assert")
(version "1.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/issue9/assert")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1bb5xaiq48xp64rawcaxbg9rivnv6kxgc8jfdi62lawiv1w009d3"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/issue9/assert"))
(home-page "https://github.com/issue9/assert")
(synopsis "assert")
(description
"Package assert æ\x98¯å¯¹ testing å\x8c\x85ç\x9a\x84ä¸\x80äº\x9bç®\x80å\x8d\x95å\x8c\x85è£\x85")
(license license:expat)))
(define-public go-github-com-issue9-assert-v2
(package
(name "go-github-com-issue9-assert-v2")
(version "2.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/issue9/assert")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0j2n9g88a2qx6j0fskz03ihl49fknlk8cakdvjpqwnl2rf5mr4w1"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/issue9/assert/v2"))
(home-page "https://github.com/issue9/assert")
(synopsis "assert")
(description
"Package assert æ\x98¯å¯¹ testing å\x8c\x85ç\x9a\x84ä¸\x80äº\x9bç®\x80å\x8d\x95å\x8c\x85è£\x85")
(license license:expat)))
(define-public go-github-com-issue9-identicon
(package
(name "go-github-com-issue9-identicon")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/issue9/identicon")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1zkr3841cv1qh8ivzf202pssmzxwa42qd6k78592na3bfdpb6sal"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/issue9/identicon"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-issue9-assert-v2))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/issue9/identicon")
(synopsis "identicon")
(description
"Package identicon ä¸\x80个å\x9fºäº\x8e hash å\x80¼ç\x94\x9fæ\x88\x90é\x9a\x8fæ\x9cºå\x9b¾å\x83\x8fç\x9a\x84å\x8c\x85")
(license license:expat)))
(define-public go-github-com-jaytaylor-html2text
(package
(name "go-github-com-jaytaylor-html2text")
2022-01-03 07:42:31 +01:00
(version "0.0.0-20211013000000-90c08c5027d3")
2021-12-30 23:18:41 +01:00
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jaytaylor/html2text")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
2022-01-03 07:42:31 +01:00
(base32 "1zxb2ym0rz087hwzcgd6ja717930k2clhs7995yvbspncswidmgb"))))
2021-12-30 23:18:41 +01:00
(build-system go-build-system)
(arguments '(#:import-path "github.com/jaytaylor/html2text"))
2021-12-31 10:10:08 +01:00
(propagated-inputs
(list go-github-com-olekukonko-tablewriter
go-github-com-ssor-bom
go-golang-org-x-net))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/jaytaylor/html2text")
(synopsis "html2text")
(description "Ensure your emails are readable by all!")
(license license:expat)))
2021-12-31 10:10:08 +01:00
(define-public go-github-com-ssor-bom
(package
(name "go-github-com-ssor-bom")
(version "0.0.0-20170718123548-6386211fdfcf")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ssor/bom")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "09g5496ifwqxqclh2iw58plcwcz0sczlnxwqxzwmnl4shdl371ld"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/ssor/bom"))
(home-page "https://github.com/ssor/bom")
(synopsis "bom")
(description "small tools for cleaning bom from byte array or reader")
(license license:expat)))
2021-12-30 23:18:41 +01:00
(define-public go-github-com-keybase-go-crypto
(package
(name "go-github-com-keybase-go-crypto")
(version "0.0.0-20200123153347-de78d2cb44f4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/keybase/go-crypto")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0prrpv0x7nbq5k6swn2jwypzxa8h4aj5lgyw372n6c8ln34fh9jq"))))
(build-system go-build-system)
2022-01-02 00:26:55 +01:00
(arguments
'(#:import-path "github.com/keybase/go-crypto"
2022-01-05 08:44:11 +01:00
#:modules ((guix build go-build-system)
(guix build utils)
(srfi srfi-1))
2022-01-02 00:26:55 +01:00
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
2022-01-05 08:44:11 +01:00
#:import-path (string-drop directory 4)))
(find-files "src/github.com/keybase/go-crypto"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-02 00:26:55 +01:00
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
2022-01-05 08:44:11 +01:00
#:import-path (string-drop directory 4)))
(find-files "src/github.com/keybase/go-crypto"
(lambda (file stat)
(and
(eq? (stat:type stat) 'directory)
(let ((files (find-files file "\\.go$")))
(and
(not (null? files))
(not (null?
(filter-map
(lambda (test-entry)
(not (string-contains test-entry file-name-separator-string)))
(map (lambda (entry)
(string-drop entry (1+ (string-length file))))
files))))))))
#:directories? #t))))
2022-01-02 00:26:55 +01:00
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.gz$")))))))
(propagated-inputs
2022-01-05 08:44:11 +01:00
(list go-golang-org-x-sys))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/keybase/go-crypto")
(synopsis #f)
(description #f)
(license license:bsd-3)))
(define-public go-github-com-lafriks-xormstore
(package
(name "go-github-com-lafriks-xormstore")
(version "1.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lafriks/xormstore")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ys4cg8d4r1b7hbwm8a5aradrj7rc32yjkm93mkl3yydjppd7xhi"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/lafriks/xormstore"))
(propagated-inputs
2022-01-02 00:26:55 +01:00
(list go-xorm-io-xorm
;go-gopkg-in-check-v1
;go-golang-org-x-text
;go-golang-org-x-crypto
;go-github-com-kr-pretty
go-github-com-gorilla-sessions
go-github-com-gorilla-securecookie
go-github-com-gorilla-context
;go-github-com-golang-protobuf
))
(native-inputs
(list
go-github-com-denisenkom-go-mssqldb
go-github-com-go-sql-driver-mysql
go-github-com-lib-pq
go-github-com-mattn-go-sqlite3
))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/lafriks/xormstore")
(synopsis "XORM backend for gorilla sessions")
(description "Package xormstore is a XORM backend for gorilla sessions")
(license license:expat)))
(define-public go-github-com-libdns-libdns
(package
(name "go-github-com-libdns-libdns")
(version "0.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libdns/libdns")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ix668h4n2n9iph4xiznzdfw7hy0ijy906mvnys4kq9f0v9ih4bg"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/libdns/libdns"))
(home-page "https://github.com/libdns/libdns")
(synopsis "libdns - Universal DNS provider APIs for Go")
(description
"Package libdns defines core interfaces that should be implemented by DNS
provider clients. They are small and idiomatic Go interfaces with well-defined
semantics.")
(license license:expat)))
(define-public go-github-com-lunny-dingtalk-webhook
(package
(name "go-github-com-lunny-dingtalk-webhook")
(version "0.0.0-20171025031554-e3534c89ef96")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lunny/dingtalk_webhook")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0dw6vzv6aq1yfxyllc406q69vlrk39m5jdcj355y9h9ak84plznw"))))
(build-system go-build-system)
2022-01-03 07:42:31 +01:00
(arguments
'(#:tests? #f ; All tests require network access.
#:import-path "github.com/lunny/dingtalk_webhook"))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/lunny/dingtalk_webhook")
2022-01-03 07:42:31 +01:00
(synopsis "Dingtalk webhook Golang SDK")
2021-12-30 23:18:41 +01:00
(description
2022-01-03 07:42:31 +01:00
"Dingtalk webhook Golang SDK")
2021-12-30 23:18:41 +01:00
(license license:expat)))
(define-public go-google-golang-org-grpc-cmd-protoc-gen-go-grpc
(package
(name "go-google-golang-org-grpc-cmd-protoc-gen-go-grpc")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/grpc/grpc-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1f3zr5a49pdy531aznjapslf8z821wdnk9xrdq564jvva0i8k7m4"))))
(build-system go-build-system)
(arguments
'(#:import-path "google.golang.org/grpc/cmd/protoc-gen-go-grpc"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-google-golang-org-protobuf))
2021-12-30 23:18:41 +01:00
(home-page "https://google.golang.org/grpc/cmd/protoc-gen-go-grpc")
(synopsis "protoc-gen-go-grpc")
(description
"protoc-gen-go-grpc is a plugin for the Google protocol buffer compiler to
generate Go code. Install it by building this program and making it accessible
within your PATH with the name:")
(license license:asl2.0)))
(define-public go-github-com-google-martian-v3
(package
(name "go-github-com-google-martian-v3")
(version "3.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/martian")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ylsicpiaprq6yvgbl4qiclvj4xsnsmjsjmyi21rqgxhnvyjbfyf"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/google/martian/v3"))
(propagated-inputs
`(;("go-google-golang-org-protobuf" ,go-google-golang-org-protobuf)
;("go-google-golang-org-grpc-cmd-protoc-gen-go-grpc" ,go-google-golang-org-grpc-cmd-protoc-gen-go-grpc)
;("go-google-golang-org-grpc" ,go-google-golang-org-grpc)
;("go-golang-org-x-net" ,go-golang-org-x-net)
;("go-github-com-golang-snappy" ,go-github-com-golang-snappy)
;("go-github-com-golang-protobuf" ,go-github-com-golang-protobuf)
))
(home-page "https://github.com/google/martian")
(synopsis "Martian Proxy")
(description
"Package martian provides an HTTP/1.1 proxy with an API for configurable request
and response modifiers.")
(license license:asl2.0)))
(define-public go-github-com-googleapis-gax-go-v2
(package
(name "go-github-com-googleapis-gax-go-v2")
(version "2.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/googleapis/gax-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0y959pdc2yqajhk5wxdsvfjkz3pb5ppi6yrcmpy2dkviwhx2kz73"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/googleapis/gax-go/v2"))
(propagated-inputs
`(;("go-google-golang-org-protobuf" ,go-google-golang-org-protobuf)
;("go-google-golang-org-grpc" ,go-google-golang-org-grpc)
;("go-google-golang-org-genproto" ,go-google-golang-org-genproto)
;("go-google-golang-org-api" ,go-google-golang-org-api)
;("go-github-com-google-go-cmp" ,go-github-com-google-go-cmp)
))
(home-page "https://github.com/googleapis/gax-go")
(synopsis #f)
(description
"Package gax contains a set of modules which aid the development of APIs for
clients and servers based on gRPC and Google API conventions.")
(license license:bsd-3)))
(define-public go-google-golang-org-api
(package
(name "go-google-golang-org-api")
(version "0.63.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/googleapis/google-api-go-client")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ws1lr584mgff63r9rs4g5g963vvxvds861grlqlc076aknksqs8"))))
(build-system go-build-system)
(arguments '(#:import-path "google.golang.org/api"))
(propagated-inputs
`(;("go-google-golang-org-grpc" ,go-google-golang-org-grpc)
;("go-google-golang-org-genproto" ,go-google-golang-org-genproto)
;("go-google-golang-org-appengine" ,go-google-golang-org-appengine)
;("go-golang-org-x-sys" ,go-golang-org-x-sys)
;("go-golang-org-x-sync" ,go-golang-org-x-sync)
;("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2)
;("go-golang-org-x-net" ,go-golang-org-x-net)
;("go-go-opencensus-io" ,go-go-opencensus-io)
;("go-github-com-googleapis-gax-go-v2" ,go-github-com-googleapis-gax-go-v2)
;("go-github-com-google-go-cmp" ,go-github-com-google-go-cmp)
;("go-cloud-google-com-go" ,go-cloud-google-com-go)
))
(home-page "https://google.golang.org/api")
(synopsis "Google APIs Client Library for Go")
(description
"Package api is the root of the packages used to access Google Cloud Services.
See
@url{https://godoc.org/google.golang.org/api,https://godoc.org/google.golang.org/api}
for a full list of sub-packages.")
(license license:bsd-3)))
(define-public go-cloud-google-com-go
(package
(name "go-cloud-google-com-go")
(version "0.99.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/googleapis/google-cloud-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1h5w5rnfaifg6frgyh7pz6604zhdacy0jmha0i0vvmb8n2vadx2n"))))
(build-system go-build-system)
2021-12-31 10:10:08 +01:00
(arguments
'(#:import-path "cloud.google.com/go"
#:phases
(modify-phases %standard-phases
(add-before 'reset-gzip-timestamps 'chmod-gzip-files
(lambda* (#:key outputs #:allow-other-keys)
(for-each make-file-writable
(find-files (assoc-ref outputs "out") "\\.gz$")))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
`(;("go-google-golang-org-protobuf" ,go-google-golang-org-protobuf)
;("go-google-golang-org-grpc" ,go-google-golang-org-grpc)
;("go-google-golang-org-genproto" ,go-google-golang-org-genproto)
;("go-google-golang-org-api" ,go-google-golang-org-api)
;("go-golang-org-x-xerrors" ,go-golang-org-x-xerrors)
;("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2)
;("go-go-opencensus-io" ,go-go-opencensus-io)
;("go-github-com-googleapis-gax-go-v2" ,go-github-com-googleapis-gax-go-v2)
;("go-github-com-google-martian-v3" ,go-github-com-google-martian-v3)
;("go-github-com-google-go-cmp" ,go-github-com-google-go-cmp)
;("go-github-com-golang-protobuf" ,go-github-com-golang-protobuf)
;;("go-cloud-google-com-go-storage" ,go-cloud-google-com-go-storage) ; TODO: import
))
(home-page "https://cloud.google.com/go")
(synopsis "Google Cloud Client Libraries for Go")
(description
"Package cloud is the root of the packages used to access Google Cloud Services.
See
@url{https://godoc.org/cloud.google.com/go,https://godoc.org/cloud.google.com/go}
for a full list of sub-packages.")
(license license:asl2.0)))
(define-public go-github-com-golang-jwt-jwt
(package
(name "go-github-com-golang-jwt-jwt")
(version "3.2.2+incompatible")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/golang-jwt/jwt")
(commit (string-append "v" (go-version->git-ref version)))))
(file-name (git-file-name name version))
(sha256
(base32 "0hq8wz11g6kddx9ab0icl5h3k4lrivk1ixappnr5db2ng2wjks9c"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/golang-jwt/jwt"))
(home-page "https://github.com/golang-jwt/jwt")
(synopsis "jwt-go")
(description
"Package jwt is a Go implementation of JSON Web Tokens:
@url{http://self-issued.info/docs/draft-jones-json-web-token.html,http://self-issued.info/docs/draft-jones-json-web-token.html}")
(license license:expat)))
(define-public go-github-com-gorilla-pat
(package
(name "go-github-com-gorilla-pat")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/pat")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1z9mk8ism43bc1zm484iaq1cipn64znmzma4sl2gq83nsh4gcw5i"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/gorilla/pat"))
2021-12-31 10:10:08 +01:00
(propagated-inputs
(list go-github-com-gorilla-context
go-github-com-gorilla-mux))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/gorilla/pat")
(synopsis "pat")
(description
"Package gorilla/pat is a request router and dispatcher with a pat-like
interface. It is an alternative to gorilla/mux that showcases how it can be
used as a base for different API flavors. Package pat is documented at:")
(license license:bsd-3)))
(define-public go-github-com-jarcoal-httpmock
(package
(name "go-github-com-jarcoal-httpmock")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jarcoal/httpmock")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1nvlmr2skpxinvwd5gvc68k9saix8iajq136mwcfqmk6dl25hf4l"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/jarcoal/httpmock"))
(home-page "https://github.com/jarcoal/httpmock")
(synopsis "httpmock")
(description "Package httpmock provides tools for mocking HTTP responses.")
(license license:expat)))
(define-public go-github-com-lestrrat-go-backoff-v2
(package
(name "go-github-com-lestrrat-go-backoff-v2")
(version "2.0.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lestrrat-go/backoff")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1s939szsdv0ggp69rig8dkl74s5dvwzm5cw80h0b3dvkqhikim5d"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/lestrrat-go/backoff/v2"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-lestrrat-go-option))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/lestrrat-go/backoff")
(synopsis "backoff")
(description
"Package backoff implments backoff algorithms for retrying operations.")
(license license:expat)))
(define-public go-github-com-lestrrat-go-blackmagic
(package
(name "go-github-com-lestrrat-go-blackmagic")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lestrrat-go/blackmagic")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "18icd3lx6naz942rxg6hb3dgrihzqa1gab038p9wyh5g2b27x9b9"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/lestrrat-go/blackmagic"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-pkg-errors))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/lestrrat-go/blackmagic")
(synopsis "blackmagic")
(description "Reflect-based black magic. YMMV, and use with caution")
(license license:expat)))
(define-public go-github-com-lestrrat-go-httpcc
(package
(name "go-github-com-lestrrat-go-httpcc")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lestrrat-go/httpcc")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lih3b0xas3j80pp8b0v0pjxrad5iafv44nbxni5nh7l54bp4wd0"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/lestrrat-go/httpcc"))
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-pkg-errors))
(native-inputs
(list go-github-com-stretchr-testify))
2021-12-30 23:18:41 +01:00
(home-page "https://github.com/lestrrat-go/httpcc")
(synopsis "httpcc")
(description
"Parses HTTP/1.1 Cache-Control header, and returns a struct that is convenient
for the end-user to do what they will with.")
(license license:expat)))
(define-public go-github-com-lestrrat-go-iter
(package
(name "go-github-com-lestrrat-go-iter")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lestrrat-go/iter")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "07601yzh1dgldi2pp7lvbrlhfd17wqvdqfcxl44jg2n9dmcbmaam"))))
(build-system go-build-system)
2022-01-02 00:26:55 +01:00
(arguments
'(#:import-path "github.com/lestrrat-go/iter"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key import-path build-flags #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'build)
#:build-flags build-flags
#:import-path (string-append "github.com/lestrrat-go/iter/" directory)))
(list "arrayiter"
"mapiter"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(for-each
(lambda (directory)
((assoc-ref %standard-phases 'check)
#:tests? tests?
#:import-path (string-append "github.com/lestrrat-go/iter/" directory)))
(list "arrayiter"
"mapiter")))))))
2021-12-30 23:18:41 +01:00
(propagated-inputs
2021-12-31 10:10:08 +01:00
(list go-github-com-pkg-errors))
(native-inputs
(list go-github-com-stretchr-testify))