File python-nptyping.spec of Package python-nptyping
#
# spec file for package python-nptyping
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-nptyping
Version: 2.5.0
Release: 0
Summary: Type hints for NumPy
License: MIT
URL: https://github.com/ramonhagenaars/nptyping
Source: https://files.pythonhosted.org/packages/source/n/nptyping/nptyping-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: unzip
Requires: python-typing_extensions >= 4.0.0
Requires: python-numpy >= 1.20.0
BuildArch: noarch
%python_subpackages
%description
Type hints for NumPy.
%prep
%autosetup -p1 -n nptyping-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# skip tests due to problems, see factory package spec https://build.opensuse.org/package/view_file/openSUSE:Factory/python-nptyping/python-nptyping.spec
# check
# pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/nptyping
%{python_sitelib}/nptyping-%{version}.dist-info
%changelog