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

EAPI=8

# ebuild generated by hackport 0.9.0.0.9999

CABAL_HACKAGE_REVISION=1

CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="Docker containers for your integration tests"
HOMEPAGE="https://hackage.haskell.org/package/testcontainers"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
RESTRICT+="test" #needs a running docker instance

RDEPEND=">=dev-haskell/aeson-1.4.6:=[profile?] <dev-haskell/aeson-3:=[profile?]
	>=dev-haskell/aeson-optics-1.1:=[profile?] <dev-haskell/aeson-optics-2:=[profile?]
	dev-haskell/async:=[profile?]
	>=dev-haskell/http-client-0.5.14:=[profile?] <dev-haskell/http-client-1:=[profile?]
	>=dev-haskell/http-types-0.12.3:=[profile?] <dev-haskell/http-types-1:=[profile?]
	>=dev-haskell/network-2.8.0:=[profile?] <dev-haskell/network-4:=[profile?]
	>=dev-haskell/optics-core-0.1:=[profile?] <dev-haskell/optics-core-0.5:=[profile?]
	>=dev-haskell/random-1.2:=[profile?] <dev-haskell/random-2:=[profile?]
	>=dev-haskell/resourcet-1.2.4:=[profile?] <dev-haskell/resourcet-1.4:=[profile?]
	>=dev-haskell/tasty-1.0:=[profile?] <dev-haskell/tasty-1.6:=[profile?]
	>=dev-haskell/text-1.2.3:=[profile?] <dev-haskell/text-3:=[profile?]
	>=dev-haskell/unliftio-core-0.1.0:=[profile?] <dev-haskell/unliftio-core-0.3:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/hspec-2.0 <dev-haskell/hspec-3.0
		app-containers/docker
		app-containers/docker-cli
		>=dev-haskell/tasty-discover-4.2.1 <dev-haskell/tasty-discover-6
		dev-haskell/tasty-hspec
		dev-haskell/tasty-hunit )
"