Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 45 lines 810 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, bitbox02 5, ecdsa 6, hidapi 7, libusb1 8, mnemonic 9, pyaes 10, typing-extensions 11}: 12 13buildPythonPackage rec { 14 pname = "hwi"; 15 version = "2.0.1"; 16 17 src = fetchFromGitHub { 18 owner = "bitcoin-core"; 19 repo = "HWI"; 20 rev = version; 21 sha256 = "148m0vgwm6l8drcx6j3fjs2zpdzvslk4w2nkb8nm0g8qdlm6gjlw"; 22 }; 23 24 propagatedBuildInputs = [ 25 bitbox02 26 ecdsa 27 hidapi 28 libusb1 29 mnemonic 30 pyaes 31 typing-extensions 32 ]; 33 34 # tests require to clone quite a few firmwares 35 doCheck = false; 36 37 pythonImportsCheck = [ "hwilib" ]; 38 39 meta = { 40 description = "Bitcoin Hardware Wallet Interface"; 41 homepage = "https://github.com/bitcoin-core/hwi"; 42 license = with lib.licenses; [ mit ]; 43 maintainers = with lib.maintainers; [ prusnak ]; 44 }; 45}