summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-fiona/package.py
blob: 18d330a7744d4c403ae695767d72116d5625d890 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2013-2019 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 PyFiona(PythonPackage):
    """Alternative Python binding for OGR"""

    homepage = "http://toblerity.org/fiona/"
    url      = "https://github.com/Toblerity/Fiona/archive/1.7.12.tar.gz"

    version('1.7.12', 'a2269acf64d9c87482e5d67dae19501c')

    depends_on('python@2.6:', type=('build', 'run'))

    depends_on('py-cligj@0.4:', type=('build', 'run'))
    depends_on('py-six@1.7:', type=('build', 'run'))
    depends_on('py-munch', type=('build', 'run'))
    depends_on('py-argparse', type=('build', 'run'), when='^python@:2.6')
    depends_on('py-ordereddict', type=('build', 'run'), when='^python@:2.6')
    depends_on('gdal@1.8:', type=('build', 'run'))
    depends_on('py-click-plugins', type=('build', 'run'))

    depends_on('py-setuptools', type='build')
    depends_on('py-cython@0.21.2:', type='build')
    depends_on('py-nose', type='test')