Bug 2087268

Summary: Variant request: python38 variant of python-passlib for EL8
Product: [Fedora] Fedora EPEL Reporter: Leon Fauster <leonfauster>
Component: python-passlibAssignee: Joel Capitao <jcapitao>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel8CC: apevec, maxwell, openstack-sig, pb, thomas.andrejak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leon Fauster 2022-05-17 17:56:04 UTC
Description of problem:

With the release of RHEL8.6 ansible-core was introduced, which is build against python38.

Please consider adding python-passlib as a python38 variant to EPEL8

Some discussion about it took place here:

https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/thread/CECLJH3QPXWNZGNTG3KIQHFZB4WFVOAN/

The POC there was to build it as a normal package (python38-passlib) and _not_ 
as module / part of a stream.



Version-Release number of selected component (if applicable):

Its not necessary to supersede the "default" variant:

$ rpm -qa |grep passlib
python3-passlib-1.7.4-6.el8.noarch
python38-passlib-1.7.4-6.el8.noarch

(these are local builds, EPEL8 provides 1.7.2 right now)




How reproducible:

As starting point the patch I used ... (quick and dirty and not finally peer reviewed):

--- python-passlib.spec.org	2022-05-17 16:41:48.048137535 +0200
+++ python-passlib.spec	2022-05-17 16:41:14.688129464 +0200
@@ -1,3 +1,9 @@
+%if 0%{?rhel} == 8
+%define python3_pkgversion 38
+BuildRequires:  python%{python3_pkgversion}-rpm-macros
+%{?python_disable_dependency_generator}
+%endif
+
 Name:		python-passlib
 Version:	1.7.4
 Release:	6%{?dist}
@@ -23,18 +29,18 @@
 multi-user application.
 
 
-%{?python_extras_subpkg:%python_extras_subpkg -n python3-passlib -i %{python3_sitelib}/*.egg-info argon2 bcrypt totp}
+%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-passlib -i %{python3_sitelib}/*.egg-info argon2 bcrypt totp}
 
 
-%package -n python3-passlib
+%package -n python%{python3_pkgversion}-passlib
 Summary:	Comprehensive password hashing framework supporting over 20 schemes
-%{?python_provide:%python_provide python3-passlib}
+#{?python_provide:%python_provide python3-passlib}
 
-BuildRequires:	python3-devel
-BuildRequires:	python3-nose
-BuildRequires:	python3-setuptools
+BuildRequires:	python%{python3_pkgversion}-devel
+#BuildRequires:	python3-nose
+BuildRequires:	python%{python3_pkgversion}-setuptools
 
-%description -n python3-passlib
+%description -n python%{python3_pkgversion}-passlib
 Passlib is a password hashing library for Python 2 & 3, which provides
 cross-platform implementations of over 20 password hashing algorithms,
 as well as a framework for managing existing password hashes. It's
@@ -59,11 +65,11 @@
 %py3_install
 
 
-%check
-nosetests-%{python3_version} -v
+#check
+#nosetests-%{python3_version} -v
 
 
-%files -n python3-passlib
+%files -n python%{python3_pkgversion}-passlib
 %doc README
 %license LICENSE
 %{python3_sitelib}/passlib*/

Comment 1 Fedora Admin user for bugzilla script actions 2022-07-26 13:16:32 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2023-01-10 13:35:29 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2023-01-18 12:41:21 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Fedora Admin user for bugzilla script actions 2023-05-27 00:10:48 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 5 Peter Bieringer 2025-05-25 07:40:45 UTC
Python 3.8 on EL8 is EoSL since 2023-05, potentially this ticket can be closed.