mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
1c8cc3b488
upstream update https://github.com/databricks/cli/releases/tag/v0.234.0 Test `TestConsistentDatabricksSdkVersion` was added to ignored as it relies on internal subpackage which building is also skipped
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
git,
|
|
python3,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "databricks-cli";
|
|
version = "0.234.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "databricks";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-I1S31a1JvXFXWw4EkS40efKEE9wsQlMdjVxEJDRTzA8=";
|
|
};
|
|
|
|
vendorHash = "sha256-Zih5NftJMbtLYG0Sej1BaErJ8NnU25mwhl3pfqSOSxc=";
|
|
|
|
excludedPackages = [ "bundle/internal" ];
|
|
|
|
postBuild = ''
|
|
mv "$GOPATH/bin/cli" "$GOPATH/bin/databricks"
|
|
'';
|
|
|
|
checkFlags =
|
|
"-skip="
|
|
+ (lib.concatStringsSep "|" [
|
|
# Need network
|
|
"TestConsistentDatabricksSdkVersion"
|
|
"TestTerraformArchiveChecksums"
|
|
"TestExpandPipelineGlobPaths"
|
|
"TestRelativePathTranslationDefault"
|
|
"TestRelativePathTranslationOverride"
|
|
]);
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
(python3.withPackages (
|
|
ps: with ps; [
|
|
setuptools
|
|
wheel
|
|
]
|
|
))
|
|
];
|
|
|
|
preCheck = ''
|
|
# Some tested depends on git and remote url
|
|
git init
|
|
git remote add origin https://github.com/databricks/cli.git
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Databricks CLI";
|
|
mainProgram = "databricks";
|
|
homepage = "https://github.com/databricks/cli";
|
|
changelog = "https://github.com/databricks/cli/releases/tag/v${version}";
|
|
license = licenses.databricks;
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
};
|
|
}
|