File python-traits.spec of Package failed_python-traits
Name: python-traits
Version: 6.4.3
Release: 1.1
Summary: Traits package providing explicit notification on attribute changes
License: BSD-3-Clause
URL: https://github.com/enthought/traits
Source0: traits-%{version}.tar.gz
Patch0: fix-trashcan.patch
# Build requires - keep minimal, the build environment should already
# provide the detailed python flavors as in the build logs.
BuildRequires: python3-devel, gcc
%description
Traits is a package that provides attribute validation and notification,
used heavily in scientific and UI code.
%prep
%setup -q -n traits-%{version}
# apply the compatibility patch that maps removed Py_TRASHCAN_SAFE_* macros
# to the older Py_TRASHCAN_* macros for older Python C-API compatibility.
%patch0 -p1
%build
%py3_build
%install
%py3_install
%files
%license LICENSE
%{python3_sitelib}/*
%changelog
* Thu Aug 14 2025 Packager <packager@example.com> - 6.4.3-1.1
- Add compatibility patch for Python 3.13 removal of Py_TRASHCAN_SAFE_* macros