# 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_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="JSON Object Signing and Encryption Library"
HOMEPAGE="https://github.com/tekul/jose-jwt"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="doctest"

RDEPEND=">=dev-haskell/aeson-1.5:=[profile?] <dev-haskell/aeson-2.3:=[profile?]
	>=dev-haskell/attoparsec-0.12.0.0:=[profile?]
	>=dev-haskell/cereal-0.4:=[profile?]
	>=dev-haskell/crypton-0.32:=[profile?]
	>=dev-haskell/memory-0.10:=[profile?]
	>=dev-haskell/text-0.11:=[profile?]
	>=dev-haskell/transformers-compat-0.4:=[profile?]
	>=dev-haskell/unordered-containers-0.2:=[profile?]
	>=dev-haskell/vector-0.10:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/hspec-1.6
		>=dev-haskell/hunit-1.2
		>=dev-haskell/quickcheck-2.4
		doctest? ( >=dev-haskell/doctest-0.9.11 ) )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag doctest doctest)
}