Name: python-krb5
Version: 0.5.0
Release: 1%{dist}
Summary: Kerberos API bindings for Python
License: MIT
URL: https://github.com/jborean93/pykrb5
Source: %{pypi_source krb5}
# https://github.com/jborean93/pykrb5/pull/32
Patch: 0001-Exclude-header-files-from-package-data.patch
BuildRequires: gcc
BuildRequires: krb5-devel
# for /usr/sbin/kdb5_util in tests
BuildRequires: krb5-server
# for /usr/bin/kinit in tests
BuildRequires: krb5-workstation
%global _description %{expand:
This library provides Python functions that wraps the Kerberos 5 C API. Due to
the complex nature of this API it is highly recommended to use something like
python-gssapi which exposes the Kerberos authentication details through GSSAPI.}
%description %_description
%package -n python3-krb5
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
#BuildRequires: python3-k5test
%description -n python3-krb5 %_description
%prep
%autosetup -p 1 -n krb5-%{version}
sed -i 's/Cython >= 0.29.29, < 3.0.0/Cython/g' pyproject.toml
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files krb5
%check
# We are missing python-k5test BRs required for testing
#%%pytest --verbose
%files -n python3-krb5 -f %{pyproject_files}
%doc README.md
%changelog
* Tue Feb 20 2024 Alfredo Moralejo <amoralej@redhat.com> - 0.5.0-1
- Initial package