hextreezorctl
=============

This package contains a copy of python-trezor (trezorlib) version 0.11.2,
Copyright (C) 2012-2019 SatoshiLabs and contributors, distributed under the GNU
Lesser General Public License version 3 or later. The full licence text is in
LICENSE, and the upstream credits are reproduced in AUTHORS-trezorlib.

Upstream source:  https://github.com/trezor/trezor-firmware
Release:          python/v0.11.2 (2019-02-27)

Redistributed here under the terms of the LGPL. hextreezorctl as a whole is
therefore licensed LGPL-3.0-or-later.


Changes made to the vendored copy
---------------------------------

1. src/hextreezorctl/_vendor/trezorlib/

   Verbatim, except:

   - firmware.py: `import pyblake2` replaced with `import hashlib as pyblake2`.
     pyblake2 was the backport of hashlib.blake2 for Python below 3.6 and no
     longer compiles - CPython 3.11 made Py_TYPE() non-assignable. The stdlib
     has provided blake2b and blake2s since 3.6, so the names resolve
     identically. This is the only reason 0.11.2 could not otherwise be
     installed on a current Python.

   - trezorlib/tests/ and trezorlib/qt/ omitted. Neither is reachable from the
     command line tool; the former needs pytest and imports trezorlib by
     absolute name, the latter needs PyQt.

2. src/hextreezorctl/cli.py

   Upstream shipped its command line tool as a top level script named
   `trezorctl` rather than as an importable module. It is reproduced here as a
   module so it can be an entry point, with two changes:

   - the shebang line removed;
   - its four absolute `trezorlib` imports rewritten to reach the vendored copy
     (`from ._vendor.trezorlib import ...`).

   Nothing else in the file was touched, including the commands and their
   options.

3. No other file in the vendored tree was modified.
