16 buildPythonPackage rec {
19 format = "setuptools";
21 src = fetchFromGitHub {
22 owner = "bitcoin-core";
25 sha256 = "sha256-jsJjGezf2JrPYr3YNZGx23Jo14DbmM1S6bu7+xgZh58=";
28 propagatedBuildInputs = [
40 # relax required dependencies:
41 # libusb1 - https://github.com/bitcoin-core/HWI/issues/579
42 # typing-extensions - https://github.com/bitcoin-core/HWI/issues/572
44 substituteInPlace setup.py \
45 --replace 'libusb1>=1.7,<3' 'libusb1>=1.7,<4' \
46 --replace 'typing-extensions>=3.7,<4.0' 'typing-extensions>=3.7,<5.0'
49 # tests require to clone quite a few firmwares
52 pythonImportsCheck = [
57 description = "Bitcoin Hardware Wallet Interface";
58 homepage = "https://github.com/bitcoin-core/hwi";
59 license = with licenses; [ mit ];
60 maintainers = with maintainers; [ prusnak ];