testdfsio: added new package at v0.0.1 (#16789)

This commit is contained in:
darmac 2020-05-25 19:46:42 +08:00 committed by GitHub
parent 99d9967b8b
commit 6f85dc66a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,24 @@
# 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 Testdfsio(Package):
"""A corrected and enhanced version of Apache Hadoop TestDFSIO"""
homepage = "https://github.com/tthx/testdfsio"
url = "https://github.com/tthx/testdfsio/archive/0.0.1.tar.gz"
version('0.0.1', sha256='fe8cc47260ffb3e3ac90e0796ebfe73eb4dac64964ab77671e5d32435339dd09')
depends_on('maven', type='build')
depends_on('java@8', type=('build', 'run'))
depends_on('hadoop@3.2.1:', type='run')
def install(self, spec, prefix):
mvn = which('mvn')
mvn('clean', 'package', '-Dmaven.test.skip=true')
install_tree('.', prefix)