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

EAPI=8

# ebuild generated by hackport 0.8.4.0.9999

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

DESCRIPTION="JSON Object Signing and Encryption (JOSE) and JSON Web Token (JWT) library"
HOMEPAGE="https://github.com/frasertweedale/hs-jose"

LICENSE="Apache-2.0"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="demos"

RDEPEND=">=dev-haskell/aeson-2.0.1.0:=[profile?] <dev-haskell/aeson-3:=[profile?]
	>=dev-haskell/base64-bytestring-1.2.1.0:=[profile?] <dev-haskell/base64-bytestring-1.3:=[profile?]
	>=dev-haskell/concise-0.1:=[profile?]
	>=dev-haskell/cryptonite-0.24:=[profile?]
	>=dev-haskell/lens-4.16:=[profile?]
	>=dev-haskell/memory-0.7:=[profile?]
	>=dev-haskell/monad-time-0.3:=[profile?]
	>=dev-haskell/network-uri-2.6:=[profile?]
	>=dev-haskell/text-1.1:=[profile?]
	>=dev-haskell/x509-1.4:=[profile?]
	>=dev-lang/ghc-8.10.6:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.2.1.0
	test? ( dev-haskell/hedgehog
		dev-haskell/hspec
		dev-haskell/pem
		dev-haskell/tasty
		dev-haskell/tasty-hedgehog
		>=dev-haskell/tasty-hspec-1.0 )
"

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