1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, base58
6, ecdsa
7, hidapi
8, noiseprotocol
9, protobuf
10, semver
11, typing-extensions
12}:
13
14buildPythonPackage rec {
15 pname = "bitbox02";
16 version = "6.2.0";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-zt4G45nJjtU2/tbYpCEgjaoA+Xtpe9g2OpQaxfMzCb8=";
24 };
25
26 propagatedBuildInputs = [
27 base58
28 ecdsa
29 hidapi
30 noiseprotocol
31 protobuf
32 semver
33 typing-extensions
34 ];
35
36 # does not contain tests
37 doCheck = false;
38
39 pythonImportsCheck = [
40 "bitbox02"
41 ];
42
43 meta = with lib; {
44 description = "Firmware code of the BitBox02 hardware wallet";
45 homepage = "https://github.com/digitalbitbox/bitbox02-firmware/";
46 changelog = "https://github.com/digitalbitbox/bitbox02-firmware/blob/py-bitbox02-${version}/CHANGELOG.md";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ ];
49 };
50}