2019-04-18 09:52:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-djangorestframework-simplejwt
|
|
|
|
#
|
2024-06-24 06:19:09 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-04-18 09:52:52 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-13 10:52:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-04-18 09:52:52 +02:00
|
|
|
|
|
|
|
|
2024-03-27 17:39:14 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-04-18 09:52:52 +02:00
|
|
|
Name: python-djangorestframework-simplejwt
|
2024-06-24 06:19:09 +02:00
|
|
|
Version: 5.3.1
|
2019-04-18 09:52:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: JSON Web Token authentication for Django REST Framework
|
2019-09-13 10:52:35 +02:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/davesque/django-rest-framework-simplejwt
|
2024-06-24 06:50:44 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/djangorestframework-simplejwt/djangorestframework_simplejwt-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Django}
|
2019-04-18 09:52:52 +02:00
|
|
|
BuildRequires: %{python_module PyJWT}
|
|
|
|
BuildRequires: %{python_module djangorestframework}
|
2024-06-24 06:19:09 +02:00
|
|
|
BuildRequires: %{python_module freezegun}
|
|
|
|
BuildRequires: %{python_module pip}
|
2019-04-18 09:52:52 +02:00
|
|
|
BuildRequires: %{python_module pytest-django}
|
|
|
|
BuildRequires: %{python_module python-jose}
|
2024-06-24 06:50:44 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2024-06-24 06:19:09 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-04-18 09:52:52 +02:00
|
|
|
BuildRequires: fdupes
|
2019-09-13 10:52:35 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-18 09:52:52 +02:00
|
|
|
Requires: python-PyJWT
|
|
|
|
Requires: python-djangorestframework
|
|
|
|
Recommends: python-python-jose
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A minimal JSON Web Token authentication plugin for the Django REST Framework.
|
|
|
|
|
|
|
|
%prep
|
2024-06-24 06:50:44 +02:00
|
|
|
%autosetup -p1 -n djangorestframework_simplejwt-%{version}
|
2019-04-18 09:52:52 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export LANG=en_US.UTF-8
|
2024-06-24 06:19:09 +02:00
|
|
|
%pyproject_wheel
|
2019-04-18 09:52:52 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
export LANG=en_US.UTF-8
|
2024-06-24 06:19:09 +02:00
|
|
|
%pyproject_install
|
2019-04-18 09:52:52 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2019-09-13 10:52:35 +02:00
|
|
|
%pytest
|
2019-04-18 09:52:52 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt licenses/*
|
|
|
|
%doc README.rst CHANGELOG.md
|
2024-06-24 06:50:44 +02:00
|
|
|
%{python_sitelib}/rest_framework_simplejwt
|
|
|
|
%{python_sitelib}/djangorestframework_simplejwt-%{version}.dist-info
|
2019-04-18 09:52:52 +02:00
|
|
|
|
|
|
|
%changelog
|