15
0
forked from pool/python-hvac
Files
python-hvac/python-hvac.spec
Markéta Machová 8a9da81161 Accepting request 909387 from home:mcalabkova:branches:devel:languages:python
- Update to 0.11.0
  * This is intended to by the last hvac release supporting Python 2.7.
  * Userpass: Add use_token param on login(), Accept passthrough **kwargs on create user.
  * Support CA-related Environment Variables.
  * Allow Omission of Password Argument on Userpass create_or_update_user().
  * Add deprecation notices for some Client() methods.

OBS-URL: https://build.opensuse.org/request/show/909387
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hvac?expand=0&rev=21
2021-07-30 11:37:27 +00:00

73 lines
2.2 KiB
RPMSpec

#
# spec file for package python-hvac
#
# Copyright (c) 2021 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-%{**}}
Name: python-hvac
Version: 0.11.0
Release: 0
Summary: HashiCorp Vault API client
License: BSD-3-Clause
URL: https://github.com/ianunruh/hvac
Source: https://github.com/hvac/hvac/archive/v%{version}.tar.gz
BuildRequires: %{python_module Authlib}
BuildRequires: %{python_module Flask-SQLAlchemy}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module Werkzeug}
BuildRequires: %{python_module jwcrypto}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pyhcl >= 0.3.10}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.21.0}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.5.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyhcl >= 0.3.10
Requires: python-requests >= 2.21.0
Requires: python-six >= 1.5.0
BuildArch: noarch
%python_subpackages
%description
HashiCorp Vault API client for Python 2/3
%prep
%setup -q -n hvac-%{version}
# doctests and ldap need set up ldap server and that is quite an effort
rm -r tests/doctest/
rm tests/integration_tests/api/auth_methods/test_ldap.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README*
%license LICENSE.txt
%{python_sitelib}/*
%changelog