nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 965 B view raw
1{ 2 lib, 3 bitbox02, 4 buildPythonPackage, 5 cbor, 6 ecdsa, 7 fetchFromGitHub, 8 hidapi, 9 libusb1, 10 mnemonic, 11 pyaes, 12 pyserial, 13 typing-extensions, 14}: 15 16buildPythonPackage rec { 17 pname = "hwi"; 18 version = "3.1.0"; 19 format = "setuptools"; 20 21 src = fetchFromGitHub { 22 owner = "bitcoin-core"; 23 repo = "HWI"; 24 tag = version; 25 hash = "sha256-sQqft+5M+X+91bFqpUrbDRrFzpe/l1+w+pnIHwqezR8="; 26 }; 27 28 propagatedBuildInputs = [ 29 bitbox02 30 cbor 31 ecdsa 32 hidapi 33 libusb1 34 mnemonic 35 pyaes 36 pyserial 37 typing-extensions 38 ]; 39 40 # Tests require to clone quite a few firmwares 41 doCheck = false; 42 43 pythonImportsCheck = [ "hwilib" ]; 44 45 meta = { 46 description = "Bitcoin Hardware Wallet Interface"; 47 homepage = "https://github.com/bitcoin-core/hwi"; 48 changelog = "https://github.com/bitcoin-core/HWI/releases/tag/${version}"; 49 license = with lib.licenses; [ mit ]; 50 maintainers = with lib.maintainers; [ prusnak ]; 51 }; 52}