From 229886aa8fa90a49b48f6bae30b5e383c65e1554 Mon Sep 17 00:00:00 2001 From: Stas Sergienko Date: Mon, 19 Jun 2017 16:26:37 -0500 Subject: added py-dxchange and its dependencies dxfile,edffile,spefile,tifffile (#4534) * added py-dxchange and its dependencies dxfile,edffile,spefile,tifffile * fixed https in homepage of py-dxfile --- .../repos/builtin/packages/py-dxchange/package.py | 47 ++++++++++++++++++++++ .../repos/builtin/packages/py-dxfile/package.py | 38 +++++++++++++++++ .../repos/builtin/packages/py-edffile/package.py | 40 ++++++++++++++++++ .../repos/builtin/packages/py-spefile/package.py | 41 +++++++++++++++++++ .../repos/builtin/packages/py-tifffile/package.py | 37 +++++++++++++++++ 5 files changed, 203 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-dxchange/package.py create mode 100644 var/spack/repos/builtin/packages/py-dxfile/package.py create mode 100644 var/spack/repos/builtin/packages/py-edffile/package.py create mode 100644 var/spack/repos/builtin/packages/py-spefile/package.py create mode 100644 var/spack/repos/builtin/packages/py-tifffile/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-dxchange/package.py b/var/spack/repos/builtin/packages/py-dxchange/package.py new file mode 100644 index 0000000000..7c745c348f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-dxchange/package.py @@ -0,0 +1,47 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## + +from spack import * + + +class PyDxchange(PythonPackage): + """DXchange provides an interface with tomoPy and raw tomographic data + collected at different synchrotron facilities.""" + + homepage = "https://github.com/data-exchange/dxchange" + url = "https://github.com/data-exchange/dxchange/archive/v0.1.2.tar.gz" + + version('0.1.2', '36633bb67a1e7d1fb60c2300adbcbab3') + + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type='run') + depends_on('py-scipy', type='run') + depends_on('py-h5py', type='run') + depends_on('py-six', type='run') + depends_on('py-netcdf4', type='run') + depends_on('py-spefile', type='run') + depends_on('py-edffile', type='run') + depends_on('py-tifffile', type='run') + depends_on('py-dxfile', type='run') diff --git a/var/spack/repos/builtin/packages/py-dxfile/package.py b/var/spack/repos/builtin/packages/py-dxfile/package.py new file mode 100644 index 0000000000..c0942ddc98 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-dxfile/package.py @@ -0,0 +1,38 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PyDxfile(PythonPackage): + """Scientific Data Exchange [A1] is a set of guidelines for storing scientific + data and metadata in a Hierarchical Data Format 5 [B6] file.""" + + homepage = "https://github.com/data-exchange/dxfile" + url = "https://github.com/data-exchange/dxfile/archive/v0.4.tar.gz" + + version('0.4', '0402cd38aefdfd5ce92feb43dda18947') + + depends_on('py-setuptools', type='build') + depends_on('py-h5py', type='run') diff --git a/var/spack/repos/builtin/packages/py-edffile/package.py b/var/spack/repos/builtin/packages/py-edffile/package.py new file mode 100644 index 0000000000..02422dedff --- /dev/null +++ b/var/spack/repos/builtin/packages/py-edffile/package.py @@ -0,0 +1,40 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PyEdffile(PythonPackage): + """Generic class for Edf files manipulation.""" + + homepage = "https://github.com/vasole/pymca/blob/master/PyMca5/PyMcaIO/EdfFile.py" + url = "https://github.com/conda-forge/edffile-feedstock.git" + + version('5.0.0', git='https://github.com/conda-forge/edffile-feedstock.git', + commit='be5ab4199db9f8209c59e31874934b8536b52301') + + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run')) + + build_directory = 'recipe/src' diff --git a/var/spack/repos/builtin/packages/py-spefile/package.py b/var/spack/repos/builtin/packages/py-spefile/package.py new file mode 100644 index 0000000000..6279391bbd --- /dev/null +++ b/var/spack/repos/builtin/packages/py-spefile/package.py @@ -0,0 +1,41 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PySpefile(PythonPackage): + """Reader for SPE files part of pyspec a set of python routines for data + analysis of x-ray scattering experiments""" + + homepage = "https://github.com/conda-forge/spefile-feedstock" + url = "https://github.com/conda-forge/spefile-feedstock.git" + + version('1.6', git='https://github.com/conda-forge/spefile-feedstock.git', + commit='24394e066da8dee5e7608f556ca0203c9db217f9') + + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type='run') + + build_directory = 'recipe/src' diff --git a/var/spack/repos/builtin/packages/py-tifffile/package.py b/var/spack/repos/builtin/packages/py-tifffile/package.py new file mode 100644 index 0000000000..4412352db1 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-tifffile/package.py @@ -0,0 +1,37 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PyTifffile(PythonPackage): + """Read and write image data from and to TIFF files.""" + + homepage = "https://github.com/blink1073/tifffile" + url = "https://pypi.io/packages/source/t/tifffile/tifffile-0.12.1.tar.gz" + + version('0.12.1', '8a8afa74dd0df7915ac376a6cd7eeffc') + + depends_on('py-setuptools', type='build') + depends_on('py-numpy@1.8.2:', type=('build', 'run')) -- cgit v1.2.3-60-g2f50