diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-01-05 01:33:52 +0800 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2020-01-04 11:33:52 -0600 |
commit | 66bb19a5937091812b80b9c0d98c6f52b9d47165 (patch) | |
tree | 928ab4b7509529dd0cb62952f9c944cdea2fe2f3 | |
parent | c9729aaab7cd8ec8f159e19c1f354df2667da775 (diff) | |
download | spack-66bb19a5937091812b80b9c0d98c6f52b9d47165.tar.gz spack-66bb19a5937091812b80b9c0d98c6f52b9d47165.tar.bz2 spack-66bb19a5937091812b80b9c0d98c6f52b9d47165.tar.xz spack-66bb19a5937091812b80b9c0d98c6f52b9d47165.zip |
add new package : kafka (#14315)
* add new package : kafka
* move url_for_version after depens_on()
* refine list_depth for kafka
-rw-r--r-- | var/spack/repos/builtin/packages/kafka/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kafka/package.py b/var/spack/repos/builtin/packages/kafka/package.py new file mode 100644 index 0000000000..d37fd21276 --- /dev/null +++ b/var/spack/repos/builtin/packages/kafka/package.py @@ -0,0 +1,35 @@ +# Copyright 2013-2019 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 Kafka(Package): + """ + Kafka is used for building real-time data pipelines and streaming apps. + It is horizontally scalable, fault-tolerant, wicked fast, and runs in + production in thousands of companies. + """ + + homepage = "https://www-eu.apache.org/dist/kafka" + url = "https://www-eu.apache.org/dist/kafka/2.3.1/kafka_2.12-2.3.1.tgz" + list_url = "https://www-eu.apache.org/dist/kafka/" + list_depth = 1 + + version('2.13-2.4.0', sha256='c1c5246c7075459687b3160b713a001f5cd1cc563b9a3db189868d2f22aa9110') + version('2.12-2.4.0', sha256='b9582bab0c3e8d131953b1afa72d6885ca1caae0061c2623071e7f396f2ccfee') + version('2.12-2.3.1', sha256='5a3ddd4148371284693370d56f6f66c7a86d86dd96c533447d2a94d176768d2e') + version('2.12-2.3.0', sha256='d86f5121a9f0c44477ae6b6f235daecc3f04ecb7bf98596fd91f402336eee3e7') + version('2.12-2.2.2', sha256='7a1713d2ee929e54b1c889a449d77006513e59afb3032366368b2ebccd9e9ec0') + + depends_on('java@8:', type='run') + + def url_for_version(self, version): + url = "https://www-eu.apache.org/dist/kafka/{0}/kafka_{1}.tgz" + parent_dir = str(version).split('-')[1] + return url.format(parent_dir, version) + + def install(self, spec, prefix): + install_tree('.', prefix) |