From 0df27bc0f7c45cee4009f1b8894b45b7e6bfd888 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 29 Apr 2024 16:16:57 -0500 Subject: nopayloadclient: new package (#43853) --- .../builtin/packages/nopayloadclient/package.py | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 var/spack/repos/builtin/packages/nopayloadclient/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/nopayloadclient/package.py b/var/spack/repos/builtin/packages/nopayloadclient/package.py new file mode 100644 index 0000000000..92319d0f62 --- /dev/null +++ b/var/spack/repos/builtin/packages/nopayloadclient/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2024 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.package import * + + +class Nopayloadclient(CMakePackage): + """NoPayloadClient is the client-side library meant to communicate with NoPayloadDB.""" + + homepage = "https://github.com/BNLNPPS/nopayloadclient" + url = "https://github.com/BNLNPPS/nopayloadclient/archive/refs/tags/v0.0.3.tar.gz" + git = "https://github.com/BNLNPPS/nopayloadclient.git" + + maintainers("wdconinc") + + license("Apache-2.0", checked_by="wdconinc") + + version("main", branch="main") + version("0.0.3", sha256="9481981d0cfbe1727f08ae3d1129c142a952d5e67ddb9ad88224356040af2225") + + depends_on("curl") + depends_on("nlohmann-json", type="build") + + def cmake_args(self): + return [ + self.define("BUILD_TESTING", self.run_tests), + self.define("INCLUDE_DIR_NLOHMANN_JSON", self.spec["nlohmann-json"].prefix.include), + ] -- cgit v1.2.3-70-g09d2