19 buildPythonPackage rec {
25 inherit pname version;
26 hash = "sha256-lFC9e7nSPl4zo8nljhjwWLRMnZw0ymZLSYGnlaqfse8=";
29 build-system = [ setuptools ];
40 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ trezor-udev-rules ];
42 nativeCheckInputs = [ pytestCheckHook ];
45 "tests/test_stellar.py" # requires stellar-sdk
46 "tests/test_firmware.py" # requires network downloads
49 pythonImportsCheck = [ "trezorlib" ];
52 $out/bin/trezorctl --version
56 description = "Python library for communicating with Trezor Hardware Wallet";
57 mainProgram = "trezorctl";
58 homepage = "https://github.com/trezor/trezor-firmware/tree/master/python";
59 changelog = "https://github.com/trezor/trezor-firmware/blob/python/v${version}/python/CHANGELOG.md";
60 license = licenses.lgpl3Only;
61 maintainers = with maintainers; [