EAPI=8
PYTHON_COMPAT=( python3_{8..14} pypy3 )
DISTUTILS_USE_PEP517=flit
inherit distutils-r1 pypi
DESCRIPTION="Python library for communicating with Trezor Hardware Wallet"
HOMEPAGE="https://trezor.io/"

RDEPEND="
  >=dev-python/mnemonic-0.20
  >=dev-python/requests-2.4.0
  >=dev-python/click-8
  <dev-python/click-9
  >=dev-python/libusb1-1.6.4
  >=dev-python/construct-2.9
  !=dev-python/construct-2.10.55
  >=dev-python/typing-extensions-4.7.1
  >=dev-python/cryptography-47
  >=dev-python/noiseprotocol-0.3.1
  <dev-python/noiseprotocol-0.4
  >=dev-python/platformdirs-4.4.0
  >=dev-python/keyring-25.7.0
  >=dev-python/shamir-mnemonic-0.3.0
  >=dev-python/slip10-1.0.1
  >=dev-python/construct-classes-0.1.2
"
DEPEND="!dev-python/python-trezor"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"