From 192f5cf66d835969f8e6a9fd29fb1542ae8272da Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Wed, 19 Jan 2022 08:14:31 -0800 Subject: [PATCH] Adding Kosh python package v2.0 (#28426) --- .../repos/builtin/packages/py-kosh/package.py | 28 +++++++++++++++++++ .../{py-sina => py-llnl-sina}/no_orjson.patch | 0 .../{py-sina => py-llnl-sina}/package.py | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 var/spack/repos/builtin/packages/py-kosh/package.py rename var/spack/repos/builtin/packages/{py-sina => py-llnl-sina}/no_orjson.patch (100%) rename var/spack/repos/builtin/packages/{py-sina => py-llnl-sina}/package.py (97%) diff --git a/var/spack/repos/builtin/packages/py-kosh/package.py b/var/spack/repos/builtin/packages/py-kosh/package.py new file mode 100644 index 00000000000..22ba0bdf494 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-kosh/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2021 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 PyKosh(PythonPackage): + """ + Kosh allows codes to store, query, share data via an easy-to-use Python API. + Kosh lies on top of Sina and can use any database backend supported by Sina. + In adition Kosh aims to make data access and sharing as simple as possible. + """ + + homepage = "https://github.com/LLNL/kosh" + url = "https://github.com/LLNL/kosh/archive/refs/tags/v2.0.tar.gz" + + # notify when the package is updated. + maintainers = ['doutriaux1'] + + version('2.0', sha256='059e431e3d3219b53956cb464d9e10933ca141dc89662f55d9c633e35c8b3a1e') + + depends_on('py-setuptools', type='build') + depends_on("py-llnl-sina@1.11", type=("build", "run")) + depends_on("py-networkx", type=("build", "run")) + depends_on("py-numpy", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-sina/no_orjson.patch b/var/spack/repos/builtin/packages/py-llnl-sina/no_orjson.patch similarity index 100% rename from var/spack/repos/builtin/packages/py-sina/no_orjson.patch rename to var/spack/repos/builtin/packages/py-llnl-sina/no_orjson.patch diff --git a/var/spack/repos/builtin/packages/py-sina/package.py b/var/spack/repos/builtin/packages/py-llnl-sina/package.py similarity index 97% rename from var/spack/repos/builtin/packages/py-sina/package.py rename to var/spack/repos/builtin/packages/py-llnl-sina/package.py index 845a783d04e..c7c01757e39 100644 --- a/var/spack/repos/builtin/packages/py-sina/package.py +++ b/var/spack/repos/builtin/packages/py-llnl-sina/package.py @@ -7,7 +7,7 @@ from spack import * -class PySina(PythonPackage): +class PyLlnlSina(PythonPackage): """Sina allows codes to store, query, and visualize their data through an easy-to-use Python API. Data that fits its recognized schema can be ingested into one or more supported backends.