14
0

- Add patch no-pkg_resources.patch:

* Stop using pkg_resources.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-passlib?expand=0&rev=53
This commit is contained in:
2023-08-03 06:29:46 +00:00
committed by Git OBS Bridge
parent ced87b8467
commit 3d69af079f
3 changed files with 45 additions and 5 deletions

View File

@@ -32,10 +32,13 @@ Version: 1.7.4
Release: 0
Summary: Password hashing framework supporting over 20 schemes
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://foss.heptapod.net/python-libs/passlib
Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Posted to https://foss.heptapod.net/python-libs/passlib/-/issues/185
Patch0: no-pkg_resources.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
@@ -64,14 +67,14 @@ found in %{_sysconfdir}/shadow, and provide password hashing for
applications.
%prep
%setup -q -n passlib-%{version}
%autosetup -p1 -n passlib-%{version}
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@@ -87,7 +90,7 @@ applications.
%license LICENSE
%doc README
%{python_sitelib}/passlib
%{python_sitelib}/passlib-%{version}-py%{python_version}.egg-info
%{python_sitelib}/passlib-%{version}.dist-info
%endif
%changelog