3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/hwi/default.nix

46 lines
809 B
Nix
Raw Normal View History

2020-07-15 15:37:51 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, bitbox02
2020-07-15 15:37:51 +01:00
, ecdsa
, hidapi
, libusb1
, mnemonic
2020-07-15 15:37:51 +01:00
, pyaes
2021-03-05 22:23:06 +00:00
, typing-extensions
2020-07-15 15:37:51 +01:00
}:
buildPythonPackage rec {
pname = "hwi";
2021-06-02 16:31:31 +01:00
version = "2.0.2";
2020-07-15 15:37:51 +01:00
src = fetchFromGitHub {
owner = "bitcoin-core";
repo = "HWI";
rev = version;
2021-06-02 16:31:31 +01:00
sha256 = "sha256-s0pKYqesZjHE6YndqsMwCuqLK7eE82oRiSXxBdUtEX4=";
2020-07-15 15:37:51 +01:00
};
propagatedBuildInputs = [
bitbox02
2020-07-15 15:37:51 +01:00
ecdsa
hidapi
libusb1
mnemonic
2020-07-15 15:37:51 +01:00
pyaes
2021-03-05 22:23:06 +00:00
typing-extensions
2020-07-15 15:37:51 +01:00
];
# tests require to clone quite a few firmwares
2020-07-15 15:37:51 +01:00
doCheck = false;
pythonImportsCheck = [ "hwilib" ];
2020-07-15 15:37:51 +01:00
meta = {
description = "Bitcoin Hardware Wallet Interface";
homepage = "https://github.com/bitcoin-core/hwi";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ prusnak ];
};
}