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