forked from pool/python-bcrypt
- update to 4.1.3:
* Bump Rust dependency versions
* Fixed the type signature on the ``kdf`` method.
* Fixed packaging bug on Windows.
* Fixed incompatibility with passlib package detection assumptions.
* Dropped support for Python 3.6.
* Bumped MSRV to 1.64. (Note: Rust 1.63 can be used by setting the
``BCRYPT_ALLOW_RUST_163`` environment variable)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=37
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bcrypt
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,9 +17,10 @@
|
||||
#
|
||||
|
||||
|
||||
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-bcrypt
|
||||
Version: 4.0.1
|
||||
Version: 4.1.3
|
||||
Release: 0
|
||||
Summary: BSD type 2a and 2b password hashing
|
||||
License: Apache-2.0
|
||||
@@ -27,7 +28,6 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/pyca/bcrypt/
|
||||
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
Source2: cargo_config
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 3.2.1}
|
||||
BuildRequires: %{python_module setuptools-rust}
|
||||
@@ -49,11 +49,10 @@ using the BSD-originating hashing methods known as "2a" and "2b".
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a1 -n bcrypt-%{version}
|
||||
mkdir .cargo
|
||||
cp %{SOURCE2} .cargo/config
|
||||
mv Cargo.lock src/_bcrypt
|
||||
rm -v src/_bcrypt/Cargo.lock
|
||||
|
||||
%build
|
||||
export RUSTFLAGS=%{rustflags}
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user