# # spec file for package python-electrum-ecc # # Copyright (c) 2025 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/ # %define skip_python36 1 Name: python-electrum-ecc Version: 0.0.5 Release: 0 Summary: Pure python interface to libsecp256k1 License: MIT Group: Development/Languages/Python URL: https://github.com/spesmilo/electrum-ecc Source: https://github.com/spesmilo/electrum-ecc/archive/%{version}.tar.gz Patch0: 0001-lift-libsecp256k1-version.patch BuildRequires: libsecp256k1-6 BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} # /SECTION %python_subpackages %description This package provides a pure python interface to libsecp256k1. Unlike Coincurve, it uses ctypes, and has no dependency. %prep %autosetup -p1 -n electrum-ecc-%{version} %build export ELECTRUM_ECC_DONT_COMPILE=1 %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} %doc README.md %license LICENSE.txt %{python_sitelib}/electrum_ecc* %changelog