49 lines
1.5 KiB
RPMSpec
49 lines
1.5 KiB
RPMSpec
%global pypi_name cattrs
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 23.1.2
|
|
Release: 1
|
|
Summary: cattrs is an open source Python library for structuring and unstructuring data.
|
|
|
|
License: MIT
|
|
URL: https://github.com/jackwucn/pytest-check-links
|
|
Source0: https://files.pythonhosted.org/packages/68/d4/27f9fd840e74d51b6d6a024d39ff495b56ffde71d28eb82758b7b85d0617/cattrs-23.1.2.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-poetry-core
|
|
|
|
%description
|
|
cattrs is an open source Python library for structuring and unstructuring data. cattrs works best with attrs classes, dataclasses and the usual Python collections, but other kinds of classes are supported by manually registering converters.
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
cattrs is an open source Python library for structuring and unstructuring data. cattrs works best with attrs classes, dataclasses and the usual Python collections, but other kinds of classes are supported by manually registering converters.
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python3_sitelib}/cattr*
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 21 2023 luolu12 <luluoc@isoftstone.com> - 23.1.2-1
|
|
- Initial package.
|