From 85f7a8bf71a01b1337492edd24250baad42f3ea9 Mon Sep 17 00:00:00 2001 From: darmac Date: Sun, 13 Sep 2020 04:37:14 +0800 Subject: [PATCH] Add new package: delta (#18648) --- .../repos/builtin/packages/delta/package.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 var/spack/repos/builtin/packages/delta/package.py diff --git a/var/spack/repos/builtin/packages/delta/package.py b/var/spack/repos/builtin/packages/delta/package.py new file mode 100644 index 0000000000..c24a10ec2c --- /dev/null +++ b/var/spack/repos/builtin/packages/delta/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Delta(Package): + """Delta Lake is a storage layer that brings scalable, ACID transactions + to Apache Spark and other big-data engines.""" + + homepage = "http://delta.io/" + url = "https://github.com/delta-io/delta/archive/v0.7.0.tar.gz" + + version('0.7.0', sha256='1fb01e36c1cf670f201c615e5fd7df88f72c27157b7d2780d146e21b266bdb64') + version('0.6.1', sha256='c932eaf01ead08ff30ddb13ab5ad9cd43405ed8f12d5fff49bd27c59033b80df') + version('0.6.0', sha256='bd4a4b0f164bc6a9efc58369b3f466fa2e6ae977bd6f9cd97d83dfd27a90ba3a') + version('0.5.0', sha256='67850f20a64a459c84d2a4ed2f3bf6aa06dbb6d0da59d1499a6e7e439c6eaf04') + version('0.4.0', sha256='177ab0bd956a261370aea577c8847bf89541d265ce97a7e18cd6ca1a1067eb1c') + + depends_on('java@8', type=('build', 'run')) + + def install(self, spec, prefix): + bash = which('bash') + bash('build/sbt', 'compile') + bash('build/sbt', 'package') + install_tree('target', prefix.target)