spack/var/spack/repos/builtin/packages/cnpy/package.py
Harmen Stoppels fce95e2efb
license year bump (#34921)
* license bump year
* fix black issues of modified files
* mypy
* fix 2021 -> 2023
2023-01-18 14:30:17 -08:00

27 lines
667 B
Python

# Copyright 2013-2023 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)
import sys
from spack.package import *
class Cnpy(CMakePackage):
"""cnpy: library to read/write .npy and .npz files in C/C++."""
homepage = "https://github.com/rogersce/cnpy"
git = "https://github.com/rogersce/cnpy.git"
version("master", branch="master")
depends_on("zlib", type="link")
def cmake_args(self):
args = []
if sys.platform == "darwin":
args.extend(["-DCMAKE_MACOSX_RPATH=ON"])
return args