# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

COMPOSER_INSTALL_PATH="Amp/Pipeline"

inherit composer git-r3

DESCRIPTION="Concurrent iterators and pipeline operations"
HOMEPAGE="https://github.com/amphp/pipeline"
EGIT_REPO_URI="https://github.com/amphp/pipeline.git"

LICENSE="MIT"
SLOT="0"

RDEPEND="dev-php/amphp-amp
	dev-php/revolt-event-loop"
BDEPEND="test? ( dev-php/amphp-phpunit-util )"

PATCHES=( "${FILESDIR}/${PN}"-1.2.5-tests-ConcatTest.patch
	"${FILESDIR}/${PN}"-1.2.5-tests-FromIterableTest.patch
	"${FILESDIR}/${PN}"-1.2.5-tests-MergeTest.patch
	"${FILESDIR}/${PN}"-1.2.5-tests-QueueTest.patch
	"${FILESDIR}/${PN}"-1.2.5-tests-TakeWhileTest.patch )

composer_enable_tests phpunit