From 3c418d9faa3c8f3d353b4a4ccad78b708a7b0bad Mon Sep 17 00:00:00 2001 From: vvolkl Date: Wed, 23 Sep 2020 18:15:32 +0200 Subject: py-awkward1: added new package at v0.3.1 (#18892) --- .../repos/builtin/packages/py-awkward1/package.py | 28 ++++++++++++++++++++++ .../builtin/packages/py-awkward1/pybind11.patch | 14 +++++++++++ 2 files changed, 42 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-awkward1/package.py create mode 100644 var/spack/repos/builtin/packages/py-awkward1/pybind11.patch (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-awkward1/package.py b/var/spack/repos/builtin/packages/py-awkward1/package.py new file mode 100644 index 0000000000..515ef90a04 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-awkward1/package.py @@ -0,0 +1,28 @@ +# 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 PyAwkward1(PythonPackage): + """ROOT I/O in pure Python and NumPy.""" + + git = "https://github.com/scikit-hep/awkward-1.0.git" + url = "https://github.com/scikit-hep/awkward-1.0/archive/0.3.1.tar.gz" + homepage = "https://awkward-array.org" + + maintainers = ['vvolkl'] + + version('0.3.1', sha256='7126d9feab8828b0b4f4c6dbc9e28c269a91e28eef4a6033d7ebb5db21f1dab3') + + patch('pybind11.patch') + + depends_on('py-setuptools', type='build') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-numpy@1.13.1:') + depends_on('py-pybind11') + depends_on('rapidjson') + depends_on('cmake') diff --git a/var/spack/repos/builtin/packages/py-awkward1/pybind11.patch b/var/spack/repos/builtin/packages/py-awkward1/pybind11.patch new file mode 100644 index 0000000000..8edc76919f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-awkward1/pybind11.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fedfe3a..bf762c9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -107,7 +107,7 @@ addtest(test0074 tests/test_0074-argsort-and-sort-rawarray.cpp) + + # Third tier: Python modules. + if (PYBUILD) +- add_subdirectory(pybind11) ++ find_package(pybind11) + + file(GLOB LAYOUT_SOURCES "src/python/*.cpp") + pybind11_add_module(_ext ${LAYOUT_SOURCES}) + -- cgit v1.2.3-70-g09d2