python-notario/python-notario.spec

53 lines
1.4 KiB
RPMSpec

%global srcname notario
Name: python-notario
Version: 0.0.16
Release: 2
Summary: A dictionary validator
License: MIT
URL: https://github.com/alfredodeza/notario
Source0: https://files.pythonhosted.org/packages/88/43/7ba8c182d832f4cadb2ddeed8d1d3a21da7be4b88c1ddb8eaf0aadee37a2/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-py
%description
Notario is flexible and succinct Python dictionary validator with the ability
to validate against both keys and values. Schemas are smaller and readable
representations of data being validated.
%package -n python3-%{srcname}
Summary: %{summary}
Requires: python3
%description -n python3-%{srcname}
Notario is flexible and succinct Python dictionary validator with the ability
to validate against both keys and values. Schemas are smaller and readable
representations of data being validated.
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%{py3_build}
%install
%py3_install
%check
py.test-%{python3_version} -v notario/tests
%files -n python3-%{srcname}
%doc README.rst
%license LICENSE
%{python3_sitelib}/*
%changelog
* Wed Jul 05 2023 yaoxin <yao_xin001@hoperun.com> - 0.0.16-2
- Fix compilation errors caused by pytest update to 7.3.2
* Wed Aug 18 2021 Python_Bot <Python_Bot@openeuler.org> - 0.0.16-1
- Init package