14
0
forked from pool/python-PyJWT
Files
python-PyJWT/python-PyJWT.spec

67 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-PyJWT
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
%{?sle15_python_module_pythons}
Name: python-PyJWT
Accepting request 1087951 from system:homeautomation:home-assistant:unstable - update to version 2.7.0 * Add classifier for Python 3.11 by @eseifert in #818 * Add Algorithm.compute_hash_digest and use it to implement at_hash validation example by @sirosen in #775 * fix: use datetime.datetime.timestamp function to have a milliseconds by @daillouf in #821 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #825 * Custom header configuration in jwk client by @thundercat1 in #823 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #828 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #833 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #835 * Add PyJWT._{de,en}code_payload hooks by @akx in #829 * Add sort_headers parameter to api_jwt.encode by @evroon in #832 * Make mypy configuration stricter and improve typing by @akx in #830 * Bump actions/stale from 6 to 7 by @dependabot in #840 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #838 * Add more types by @Viicos in #843 * Differentiate between two errors by @irdkwmnsb in #809 * Fix _validate_iat validation by @Viicos in #847 * Improve error messages when cryptography isn't installed by @Viicos in #846 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #852 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #855 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #859 * Make Algorithm an abstract base class by @Viicos in #845 * docs: correct mistake in the changelog about verify param by @gbillig in #866 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #868 * Bump actions/stale from 7 to 8 by @dependabot in #872 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #874 * Add a timeout for PyJWKClient requests by @daviddavis in #875 * Add client connection error exception by @daviddavis in #876 * Add complete types to take all allowed keys into account by @Viicos in #873 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #878 OBS-URL: https://build.opensuse.org/request/show/1087951 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=61
2023-05-19 16:49:51 +00:00
Version: 2.7.0
Release: 0
Summary: JSON Web Token implementation in Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/progrium/pyjwt
Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
BuildRequires: %{python_module cryptography >= 3.3.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography >= 3.3.1
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
A Python implementation of JSON Web Token draft 01.
%prep
%setup -q -n PyJWT-%{version}
%build
%python_build
#remove shebang from all non executable files
find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env python@d}' {} \;
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k "not test_verify_false_deprecated"
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst CHANGELOG.rst README.rst
%{python_sitelib}/jwt
%{python_sitelib}/PyJWT-%{version}*-info
%changelog