dev-python/apsw - 3.53.1.0 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/apsw-3.53.1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/apsw-3.53.1.0

Or alternatively:

emerge --autounmask-write -a =dev-python/apsw-3.53.1.0

Package Information

Description:
APSW - Another Python SQLite Wrapper
Homepage:
https://github.com/rogerbinns/apsw/
License:
ZLIB

Ebuild Details

Version EAPI Keywords Slot
3.53.1.0 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 flag-o-matic

MY_PV=${PV/_p/-r}
MY_P=${PN}-${MY_PV}

DESCRIPTION="APSW - Another Python SQLite Wrapper"
HOMEPAGE="https://github.com/rogerbinns/apsw/"
SRC_URI="https://github.com/rogerbinns/apsw/releases/download/${MY_PV}/${MY_P}.zip"

S=${WORKDIR}/${MY_P}

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

# apsw's PV is <sqlite-version>.<apsw-revision> (e.g. 3.53.1.0 = first
# apsw release tracking sqlite 3.53.1). Strip the trailing apsw-rev to
# get the matching sqlite floor; ::gentoo ships sqlite as 3.53.1
# (no trailing .0).
RDEPEND=">=dev-db/sqlite-${PV%.*}"
DEPEND="${RDEPEND}
	app-arch/unzip"

python_compile() {
	python_is_python3 || append-cflags -fno-strict-aliasing
	distutils-r1_python_compile --enable=load_extension
}

python_test() {
	"${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed"
	"${PYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}"
}

python_install_all() {
	use doc && local HTML_DOCS=( doc/. )
	distutils-r1_python_install_all
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/apsw | euse -E <flag> -p dev-python/apsw | euse -D <flag> -p dev-python/apsw

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

>=dev-db/sqlite-3.53.1
	app-arch/unzip

RDEPEND

>=dev-db/sqlite-3.53.1

Manifest for 3.53.1.0

Type File Size Source URLs
DIST apsw-3.53.1.0.zip 2864390 bytes https://github.com/rogerbinns/apsw/releases/download/3.53.1.0/apsw-3.53.1.0.zip