[packages/python3-passlib] Up to 1.9.3
arekm
arekm at pld-linux.org
Fri Feb 6 15:28:25 CET 2026
commit c604ae261b0be6851e1713d494c406d115853289
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Feb 6 15:28:19 2026 +0100
Up to 1.9.3
python-passlib.spec | 127 ---------------------------------------------------
python3-passlib.spec | 88 +++++++++++++++++++++++++++++++++++
2 files changed, 88 insertions(+), 127 deletions(-)
---
diff --git a/python-passlib.spec b/python-passlib.spec
deleted file mode 100644
index 9764e18..0000000
--- a/python-passlib.spec
+++ /dev/null
@@ -1,127 +0,0 @@
-# Conditional build:
-%bcond_without doc # API documentation
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%define module passlib
-Summary: Comprehensive password hashing framework supporting over 20 schemes
-Name: python-%{module}
-Version: 1.7.4
-Release: 1
-License: BSD
-Group: Libraries/Python
-Source0: https://files.pythonhosted.org/packages/source/p/passlib/%{module}-%{version}.tar.gz
-# Source0-md5: 3a229cbd00dfb33e99885b43325e0591
-URL: https://foss.heptapod.net/python-libs/passlib
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.5
-BuildRequires: python-setuptools
-%if %{with tests}
-#BuildRequires: python-
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-#BuildRequires: python3-
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires: sphinx-pdg-3
-%endif
-Requires: python-modules >= 1:2.5
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Passlib is a password hashing library for Python, which provides
-cross-platform implementations of over 30 password hashing algorithms,
-as well as a framework for managing existing password hashes. It's
-designed to be useful for a wide range of tasks, from verifying a hash
-found in /etc/shadow, to providing full-strength password hashing for
-multi-user application.
-
-%package -n python3-%{module}
-Summary: Comprehensive password hashing framework supporting over 20 schemes
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-BuildArch: noarch
-
-%description -n python3-%{module}
-Passlib is a password hashing library for Python, which provides
-cross-platform implementations of over 30 password hashing algorithms,
-as well as a framework for managing existing password hashes. It's
-designed to be useful for a wide range of tasks, from verifying a hash
-found in /etc/shadow, to providing full-strength password hashing for
-multi-user application.
-
-%package apidocs
-Summary: API documentation for Python %{module} module
-Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module}
-Group: Documentation
-BuildArch: noarch
-
-%description apidocs
-API documentation for Python %{module} module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona %{module}.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%if %{with doc}
-%{__make} -C docs html
-rm -rf docs/_build/html/_sources
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc README
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/*
-%endif
diff --git a/python3-passlib.spec b/python3-passlib.spec
new file mode 100644
index 0000000..f0bad1d
--- /dev/null
+++ b/python3-passlib.spec
@@ -0,0 +1,88 @@
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests
+
+%define module passlib
+Summary: Comprehensive password hashing framework supporting over 20 schemes
+Name: python3-%{module}
+Version: 1.9.3
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: https://github.com/notypecheck/passlib/archive/refs/tags/%{version}.tar.gz
+# Source0-md5: ab3674611359a900a07ab82d09ba775e
+URL: https://github.com/notypecheck/passlib
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-bcrypt
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python3-cloud_sptheme
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Passlib is a password hashing library for Python, which provides
+cross-platform implementations of over 30 password hashing algorithms,
+as well as a framework for managing existing password hashes. It's
+designed to be useful for a wide range of tasks, from verifying a hash
+found in /etc/shadow, to providing full-strength password hashing for
+multi-user application.
+
+%package apidocs
+Summary: API documentation for Python %{module} module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module}
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{module}.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
+%endif
+
+%if %{with doc}
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/libpass-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-passlib.git/commitdiff/c604ae261b0be6851e1713d494c406d115853289
More information about the pld-cvs-commit
mailing list