mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
databricks-cli: init at 0.227.0
This commit is contained in:
parent
1bce2914b3
commit
c8e37dbf52
62
pkgs/by-name/da/databricks-cli/package.nix
Normal file
62
pkgs/by-name/da/databricks-cli/package.nix
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
git,
|
||||||
|
python3,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "databricks-cli";
|
||||||
|
version = "0.227.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "databricks";
|
||||||
|
repo = "cli";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-bmTPtxkVtGzjxgmXpIHus7vUUg3IKGWmlUT8iOU+dtM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-ItcGzgGIDQOnAwUA/mPy+oNjChKPTVo7QK3gsidB1xQ=";
|
||||||
|
|
||||||
|
excludedPackages = [ "bundle/internal" ];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
mv "$GOPATH/bin/cli" "$GOPATH/bin/databricks"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkFlags =
|
||||||
|
"-skip="
|
||||||
|
+ (lib.concatStringsSep "|" [
|
||||||
|
# Need network
|
||||||
|
"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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue