Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37866615
en ru br
ALT Linux repos
S:2.9.0-alt1

Group :: Development/Python3
RPM: python3-module-psycopg2cffi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname psycopg2cffi

%def_disable check

Name: python3-module-%oname
Version: 2.9.0
Release: alt1
Summary: An implementation of the psycopg2 module using cffi
License: LGPLv3+
Group: Development/Python3
Url: https://pypi.python.org/pypi/psycopg2cffi/

# https://github.com/chtd/psycopg2cffi.git

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: postgresql-devel libpq-devel
BuildRequires: python3-module-six python3-module-cffi

%py3_provides %oname
%py3_requires six cffi

%description
An implementation of the psycopg2 module using cffi. The module is
currently compatible with Psycopg 2.5.

%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR

%description tests
An implementation of the psycopg2 module using cffi. The module is
currently compatible with Psycopg 2.5.

This package contains tests for %oname.

%prep
%setup

%build
%python3_build

%install
%python3_install

python3 setup.py test ||:
install -d %buildroot%python3_sitelibdir/%oname/_impl/__pycache__
install -m644 %oname/_impl/__pycache__/*.so \
%buildroot%python3_sitelibdir/%oname/_impl/__pycache__/

%check
python3 setup.py test

%files
%doc AUTHORS *.rst
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/tests

%files tests
%python3_sitelibdir/*/tests

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin