Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-hyperspy
python-hyperspy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-hyperspy.spec of Package python-hyperspy
# # spec file for package python-hyperspy # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: python-hyperspy Version: 1.7.3 Release: 0 Summary: Multidimensional data analysis toolbox License: GPL-3.0-only URL: https://hyperspy.org Source0: https://github.com/hyperspy/hyperspy/archive/v%{version}.tar.gz#/hyperspy-%{version}.tar.gz # Create with scipy >= 1.10 and pooch: `python3 -c "import scipy; scipy.datasets.download_all('scipy-datasets/scipy-data')"; tar czf scipy-datasets.tar.gz scipy-datasets` Source1: scipy-datasets.tar.gz # PATCH-FIX-UPSTREAM hyperspy-e2d6483-scipy-datasets-fix.patch https://github.com/hyperspy/hyperspy/commit/e2d6483975d4d3e9f12f1fef077d9efbd125524d Patch1: hyperspy-e2d6483-scipy-datasets-fix.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Jinja2 Requires: python-Pint >= 0.10 Requires: python-PyYAML Requires: python-dask-array > 2.11.0 Requires: python-dask-diagnostics > 2.11.0 Requires: python-dill Requires: python-fsspec Requires: python-h5py >= 2.3 Requires: python-imageio Requires: python-importlib_metadata >= 3.6 Requires: python-ipyparallel Requires: python-matplotlib >= 3.1.3 Requires: python-natsort Requires: python-numba >= 0.52 Requires: python-numexpr Requires: python-numpy >= 1.17.1 Requires: python-packaging Requires: python-prettytable Requires: python-python-dateutil >= 2.5.0 Requires: python-requests Requires: python-scikit-image >= 0.15 Requires: python-scipy >= 1.1 Requires: python-sparse Requires: python-sympy Requires: python-tifffile >= 2020.2.16 Requires: python-toolz Requires: python-tqdm >= 4.9.0 Requires: python-traits >= 4.5.0 Requires: python-zarr >= 2.9.0 Requires: (python-ipython with (python-ipython < 8.0 or python-ipython >= 8.1)) Recommends: python-hyperspy_gui_ipywidgets Recommends: python-hyperspy_gui_traitsui # This package does not support 32 bit arch. ExcludeArch: %{ix86} %{arm} # SECTION test BuildRequires: %{python_module pooch} BuildRequires: %{python_module pytest-instafail} BuildRequires: %{python_module pytest-mpl} BuildRequires: %{python_module pytest-rerunfailures} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy >= 1.10.0} # runtime BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module Pint >= 0.10} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module dask-array > 2.11.0} BuildRequires: %{python_module dask-diagnostics >= 2.11.0} BuildRequires: %{python_module dill} BuildRequires: %{python_module fsspec} BuildRequires: %{python_module h5py >= 2.3} BuildRequires: %{python_module imageio} BuildRequires: %{python_module importlib_metadata >= 3.6} BuildRequires: %{python_module ipyparallel} BuildRequires: %{python_module matplotlib >= 3.1.3} BuildRequires: %{python_module natsort} BuildRequires: %{python_module numba >= 0.52} BuildRequires: %{python_module numexpr} BuildRequires: %{python_module numpy >= 1.17.1} BuildRequires: %{python_module packaging} BuildRequires: %{python_module prettytable} BuildRequires: %{python_module python-dateutil >= 2.5.0} BuildRequires: %{python_module requests} BuildRequires: %{python_module scikit-image >= 0.15} BuildRequires: %{python_module sparse} BuildRequires: %{python_module sympy} BuildRequires: %{python_module tifffile >= 2020.2.16} BuildRequires: %{python_module toolz} BuildRequires: %{python_module tqdm >= 4.9.0} BuildRequires: %{python_module traits >= 4.5.0} BuildRequires: %{python_module zarr >= 2.9.0} BuildRequires: %{python_module ipython with (%python-ipython < 8.0 or %python-ipython >= 8.1)} # /SECTION %python_subpackages %description HyperSpy is an open source Python library which provides tools to facilitate the interactive data analysis of multidimensional datasets that can be described as multidimensional arrays of a given signal (e.g. a 2D array of spectra a.k.a spectrum image). %prep %autosetup -p1 -n hyperspy-%{version} -a1 # Remove non linux file rm release_windows.bat chmod -x hyperspy/tests/io/bruker_data/*.spx %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check # pooch cache (extracted SOURCE1) export XDG_CACHE_HOME=$PWD/scipy-datasets # flaky donttest="(test_1D_tools and test_align1D)" # flaky crashes on obs donttest="$donttest or (TestROIs and test_lazy_spanroi_getitem)" %pytest_arch -k "not ($donttest)" %files %{python_files} %doc README.rst %license COPYING.txt %{python_sitearch}/hyperspy-%{version}.dist-info %{python_sitearch}/hyperspy %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor