summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-srsly/package.py
blob: 46b1b50af05808c17335df51ad242b3114c199e2 (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-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)


class PySrsly(PythonPackage):
    """srsly: Modern high-performance serialization utilities for Python."""

    homepage = "https://github.com/explosion/srsly"
    url      = "https://pypi.io/packages/source/s/srsly/srsly-2.0.1.tar.gz"

    version('2.0.1', sha256='fa3c7375be8fe75f23c27feafbfb5f738d55ffdbf02964c6896fb7684f519a52')
    version('2.0.0', sha256='785b00e00406120dbef4ca82925051e6b60fe870c5f84f0d22b3632d574eb870')
    version('1.0.2', sha256='59258b81d567df207f8a0a33c4b5fa232afccf1d927c8ce3ba5395bfd64c0ed8')

    depends_on('python@3.6:', when='@2:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')
    depends_on('py-wheel', when='@2:', type='build')
    depends_on('py-cython@0.25:', when='@2:', type='build')
    depends_on('py-pathlib@1.0.1', when='^python@:3.3', type=('build', 'run'))
    depends_on('py-pytest', type='test')
    depends_on('py-mock', type='test')
    depends_on('py-numpy', type='test')
    depends_on('py-six', when='@:1', type='test')
    depends_on('py-pytz', when='@:1', type='test')

    # https://github.com/explosion/srsly/pull/24
    patch('subprocess.patch', when='@2.0.0:2.0.1')