File python-pg8000.spec of Package python-pg8000
#
# spec file for package python-pg8000
#
# Copyright (c) 2023 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_python2 1
Name: python-pg8000
Version: 1.31.2
Release: 0
Summary: PostgreSQL interface library
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/tlocke/pg8000
Source: https://files.pythonhosted.org/packages/source/p/pg8000/pg8000-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil >= 2.8.2}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module scramp >= 1.4.3}
BuildRequires: %{python_module setuptools-wheel}
BuildRequires: %{python_module versioningit}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil >= 2.8.2
Requires: python-scramp >= 1.4.3
BuildArch: noarch
%python_subpackages
%description
pg8000 is a Pure-Python interface to the PostgreSQL database engine. It is one
of many PostgreSQL interfaces for the Python programming language. pg8000 is
somewhat distinctive in that it is written entirely in Python and does not rely
on any external libraries (such as a compiled python module, or PostgreSQL's
libpq library). pg8000 supports the standard Python DB-API version 2.0.
pg8000's name comes from the belief that it is probably about the 8000th
PostgreSQL interface for Python.
%prep
%setup -q -n pg8000-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%{python_sitelib}/pg8000
%{python_sitelib}/pg8000-%{version}.dist-info
%changelog