File python-albucore.spec of Package python-albucore
#
# spec file for package python-albucore
#
# Copyright (c) 2024 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-albucore
Version: 0.0.17
Release: 0
Summary: A high-performance image processing library for scalable image augmentation
License: MIT
URL: https://github.com/albumentations-team/albucore
Source: https://files.pythonhosted.org/packages/source/a/albucore/albucore-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module pytest >= 8.3.3}
BuildRequires: %{python_module pytest-mock >= 3.14.0}
BuildRequires: %{python_module numpy >= 1.24}
BuildRequires: %{python_module opencv >= 4.9.0}
# /SECTION
BuildRequires: fdupes
Requires: python-numpy >= 1.24
Requires: python-opencv >= 4.9.0
BuildArch: noarch
%python_subpackages
%description
A high-performance image processing library designed to optimize and extend the Albumentations library with specialized functions for advanced image transformations.
Perfect for developers working in computer vision who require efficient and scalable image augmentation.
%prep
%autosetup -p1 -n albucore-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/albucore
%{python_sitelib}/albucore-%{version}.dist-info
%changelog