2017-09-25 09:06:39 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-transip
|
|
|
|
|
#
|
2020-03-25 16:17:16 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-09-25 09:06:39 +00: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-04-15 09:13:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-15 15:21:06 +00:00
|
|
|
#
|
2017-09-25 09:06:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-transip
|
2020-04-17 11:29:21 +00:00
|
|
|
Version: 2.1.2
|
2017-09-25 09:06:39 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: TransIP API Connector
|
2018-04-15 15:21:06 +00:00
|
|
|
License: MIT
|
2017-09-25 09:06:39 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-04-15 15:21:06 +00:00
|
|
|
URL: https://github.com/benkonrath/transip-api
|
2020-03-25 16:17:16 +00:00
|
|
|
Source: https://github.com/benkonrath/transip-api/archive/%{version}.tar.gz
|
2019-04-15 09:13:39 +00:00
|
|
|
BuildRequires: %{python_module cryptography}
|
2018-04-15 15:21:06 +00:00
|
|
|
BuildRequires: %{python_module mock}
|
2020-03-25 16:17:16 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-04-15 15:21:06 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2017-09-25 09:06:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-04-15 15:21:06 +00:00
|
|
|
BuildRequires: %{python_module suds-jurko}
|
2017-09-25 09:06:39 +00:00
|
|
|
BuildRequires: fdupes
|
2018-04-15 15:21:06 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-15 09:13:39 +00:00
|
|
|
Requires: python-cryptography
|
2018-04-15 15:21:06 +00:00
|
|
|
Requires: python-requests
|
2020-03-25 16:17:16 +00:00
|
|
|
Requires: python-setuptools
|
2018-04-15 15:21:06 +00:00
|
|
|
Requires: python-suds-jurko
|
2017-09-25 09:06:39 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2018-04-16 16:03:58 +00:00
|
|
|
This library implements part of the TransIP API in Python.
|
2017-09-25 09:06:39 +00:00
|
|
|
|
|
|
|
|
%prep
|
2018-04-15 15:21:06 +00:00
|
|
|
%setup -q -n transip-api-%{version}
|
2017-09-25 09:06:39 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2018-04-15 15:21:06 +00:00
|
|
|
%check
|
|
|
|
|
# testConstructor needs network connection
|
2020-03-25 16:17:16 +00:00
|
|
|
%pytest -k 'not (test_constructor or testConstructor)'
|
2018-04-15 15:21:06 +00:00
|
|
|
|
2017-09-25 09:06:39 +00:00
|
|
|
%files %{python_files}
|
2018-04-15 15:21:06 +00:00
|
|
|
%license LICENSE
|
2017-09-25 09:06:39 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%python3_only %{_bindir}/transip-api
|
2018-04-15 15:21:06 +00:00
|
|
|
|
2017-09-25 09:06:39 +00:00
|
|
|
%changelog
|