File python-web3.spec of Package python-web3

#
# spec file for package python-web3
#
# 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() python3-%{**}}
%define skip_python2 1
# requires some unavailable modules
%bcond_with docs
Name:           python-web3
Version:        7.5.0
Release:        0
Summary:        A Python Library for Interacting with Ethereum
License:        MIT
URL:            https://github.com/ethereum/web3.py
Source:         https://files.pythonhosted.org/packages/source/w/web3/web3-%{version}.tar.gz
BuildRequires:  %{python_module poetry-core}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module eth-abi >= 5.0.1}
BuildRequires:  %{python_module eth-account >= 0.13.1}
BuildRequires:  %{python_module eth-hash >= 0.5.1}
BuildRequires:  %{python_module eth-typing >= 5.0.0}
BuildRequires:  %{python_module eth-utils >= 5.0.0}
BuildRequires:  %{python_module hexbytes >= 1.2.0}
BuildRequires:  %{python_module aiohttp >= 3.7.4.post0}
BuildRequires:  %{python_module pydantic >= 2.4.0}
BuildRequires:  %{python_module requests >= 2.23.0}
BuildRequires:  %{python_module typing-extensions >= 4.0.1}
BuildRequires:  %{python_module types-requests >= 2.0.0}
BuildRequires:  %{python_module websockets >= 10.0.0}
BuildRequires:  %{python_module pyunormalize >= 15.0.0}

BuildRequires:  fdupes
BuildRequires:  http-parser-devel
BuildRequires:  python-rpm-macros

Requires: python-eth-abi >= 5.0.1
Requires: python-eth-account >= 0.13.1
Requires: python-eth-hash >= 0.5.1
Requires: python-eth-typing >= 5.0.0
Requires: python-eth-utils >= 5.0.0
Requires: python-hexbytes >= 1.2.0
Requires: python-aiohttp >= 3.7.4.post0
Requires: python-pydantic >= 2.4.0
Requires: python-requests >= 2.23.0
Requires: python-typing-extensions >= 4.0.1
Requires: python-types-requests >= 2.0.0
Requires: python-websockets >= 10.0.0
Requires: python-pyunormalize >= 15.0.0

BuildArch: noarch

%python_subpackages

%description
web3.py allows you to interact with the Ethereum blockchain using Python, enabling you to build decentralized applications, interact with smart contracts, and much more.


%prep
%autosetup -p1 -n web3-%{version}

%build
%python_build

%install
%python_install

%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/ens
%{python_sitelib}/web3
%{python_sitelib}/web3-%{version}*-info

openSUSE Build Service is sponsored by