mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
58 lines
1.6 KiB
Nix
58 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
ginkgo,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ginkgo";
|
|
version = "2.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "onsi";
|
|
repo = "ginkgo";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-yGoWIPsOHabYAenGEzLkJ1HpSP4bkFwFhWv6cTIkitY=";
|
|
};
|
|
vendorHash = "sha256-tjHBnkFlkP7n0/c9bz/nUzWerPzVQ+12cKijG1Jzti8=";
|
|
|
|
# integration tests expect more file changes
|
|
# types tests are missing CodeLocation
|
|
excludedPackages = [
|
|
"integration"
|
|
"types"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = ginkgo;
|
|
command = "ginkgo version";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://onsi.github.io/ginkgo/";
|
|
changelog = "https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md";
|
|
description = "Modern Testing Framework for Go";
|
|
mainProgram = "ginkgo";
|
|
longDescription = ''
|
|
Ginkgo is a testing framework for Go designed to help you write expressive
|
|
tests. It is best paired with the Gomega matcher library. When combined,
|
|
Ginkgo and Gomega provide a rich and expressive DSL
|
|
(Domain-specific Language) for writing tests.
|
|
|
|
Ginkgo is sometimes described as a "Behavior Driven Development" (BDD)
|
|
framework. In reality, Ginkgo is a general purpose testing framework in
|
|
active use across a wide variety of testing contexts: unit tests,
|
|
integration tests, acceptance test, performance tests, etc.
|
|
'';
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
saschagrunert
|
|
jk
|
|
];
|
|
};
|
|
}
|