File python-cloud-volume.spec of Package python-cloud-volume

#
# spec file for package python-cloud-volume
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-cloud-volume
Version:        0.61.0
Release:        0
License:        BSD-3-Clause
Summary:        A serverless client for reading and writing Neuroglancer Precomputed volumes both locally and on cloud services
Url:            https://github.com/seung-lab/cloud-volume/
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/c/cloud-volume/cloud-volume-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module numpy}
# SECTION test requirements
BuildRequires:  %{python_module backports-abc >= 0.5}
BuildRequires:  %{python_module boto3 >= 1.4.7}
BuildRequires:  %{python_module chardet >= 3.0.4}
BuildRequires:  %{python_module compressed-segmentation >= 1.0.0}
BuildRequires:  %{python_module fastremap >= 1.6.2}
BuildRequires:  %{python_module fpzip >= 1.1.3}
BuildRequires:  %{python_module gevent}
BuildRequires:  %{python_module google-auth >= 1.0.2}
BuildRequires:  %{python_module google-cloud-storage >= 1.10.0}
BuildRequires:  %{python_module google-resumable-media}
BuildRequires:  %{python_module json5 >= 0.5.1}
BuildRequires:  %{python_module numpy >= 1.13.3}
BuildRequires:  %{python_module Pillow >= 4.2.1}
BuildRequires:  %{python_module protobuf >= 3.3.0}
BuildRequires:  %{python_module python-jsonschema-objects >= 0.3.3}
BuildRequires:  %{python_module requests >= 2.18.4}
BuildRequires:  %{python_module six >= 1.10.0}
BuildRequires:  %{python_module tenacity >= 4.10.0}
BuildRequires:  %{python_module tqdm}
BuildRequires:  %{python_module urllib3 >= 1.24.2}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module requests-mock}
# /SECTION
BuildRequires:  fdupes
Requires:       python-backports-abc >= 0.5
Requires:       python-boto3 >= 1.4.7
Requires:       python-chardet >= 3.0.4
Requires:       python-compressed-segmentation >= 1.0.0
Requires:       python-fastremap >= 1.6.2
Requires:       python-fpzip >= 1.1.3
Requires:       python-gevent
Requires:       python-google-auth >= 1.0.2
Requires:       python-google-cloud-storage >= 1.10.0
Requires:       python-google-resumable-media
Requires:       python-json5 >= 0.5.1
Requires:       python-numpy >= 1.13.3
Requires:       python-Pillow >= 4.2.1
Requires:       python-protobuf >= 3.3.0
Requires:       python-python-jsonschema-objects >= 0.3.3
Requires:       python-requests >= 2.18.4
Requires:       python-six >= 1.10.0
Requires:       python-tenacity >= 4.10.0
Requires:       python-tqdm
Requires:       python-urllib3 >= 1.24.2
Suggests:       python-posix_ipc >= 1.0.4
Suggests:       python-psutil >= 5.4.3
#Suggests:       python-DracoPy not on pypi?
#Suggests:       python-vtkintern
Suggests:       python-matplotlib
Suggests:       python-intern >= 0.9.11

BuildArch:      noarch

%python_subpackages

%description
A serverless client for reading and writing Neuroglancer
Precomputed volumes both locally and on cloud services.

%prep
%setup -q -n cloud-volume-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%pytest

%files %{python_files}
%doc AUTHORS ChangeLog README.md
%license LICENSE
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by