Files
openRuyi/SPECS/python-psycopg/python-psycopg.spec
2026-04-18 00:06:27 +08:00

49 lines
1.7 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Kimmy <yucheng.or@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname psycopg
Name: python-%{srcname}
Version: 3.3.3
Release: %autorelease
Summary: PostgreSQL database adapter for Python
License: LGPL-3.0-only
URL: https://psycopg.org
VCS: git:https://github.com/psycopg/psycopg.git
#!RemoteAsset: sha256:5e9a47458b3c1583326513b2556a2a9473a1001a56c9efe9e587245b43148dd9
Source: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): -l %{srcname}
# Skip import check for modules requiring libpq or optional deps at import time
BuildOption(check): -e "%{srcname}.pq" -e "%{srcname}.types.shapely" -e "%{srcname}.crdb*"
BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(libpq)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(numpy)
Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}
%description
psycopg is a PostgreSQL database adapter for the Python programming language.
It is a complete rewrite of the psycopg2 package, designed for Python 3 and
based on the libpq PostgreSQL client library. psycopg 3 supports both
synchronous and asynchronous operation.
%generate_buildrequires
%pyproject_buildrequires
%files -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst
%changelog
%autochangelog