dev-python/cytoolz - 1.2.0 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/cytoolz-1.2.0

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

autounmask =dev-python/cytoolz-1.2.0

Or alternatively:

emerge --autounmask-write -a =dev-python/cytoolz-1.2.0

Package Information

Description:
Cython implementation of toolz: high performance functional utilities
Homepage:
https://github.com/pytoolz/cytoolz https://pypi.org/project/cytoolz/
License:
BSD

Ebuild Details

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

EAPI=8

DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1 pypi

DESCRIPTION="Cython implementation of toolz: high performance functional utilities"
HOMEPAGE="
	https://github.com/pytoolz/cytoolz
	https://pypi.org/project/cytoolz/
"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"

RDEPEND=">=dev-python/toolz-0.8.0[${PYTHON_USEDEP}]"
BDEPEND=">=dev-python/cython-0.29[${PYTHON_USEDEP}]"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

python_test() {
	# Test the installed extension outside the source-tree pytest configuration.
	cd "${T}" || die
	epytest --pyargs cytoolz
}

python_prepare_all() {
	# The sdist lacks git metadata; disable dynamic versioning and pin ${PV}.
	sed -i \
		-e 's/^dynamic = \["version"\]/version = "'${PV}'"/' \
		-e 's/^enabled = true/enabled = false/' \
		pyproject.toml || die
	distutils-r1_python_prepare_all
}

Inherited Eclasses

Dependencies

RDEPEND

>=dev-python/toolz-0.8.0[]

BDEPEND

>=dev-python/cython-0.29[]