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