depot/third_party/nixpkgs/pkgs/development/python-modules/hwi/default.nix
Default email 48af15f7a5 Project import generated by Copybara.
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
2021-03-20 04:20:00 +00:00

45 lines
810 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, bitbox02
, ecdsa
, hidapi
, libusb1
, mnemonic
, pyaes
, typing-extensions
}:
buildPythonPackage rec {
pname = "hwi";
version = "2.0.1";
src = fetchFromGitHub {
owner = "bitcoin-core";
repo = "HWI";
rev = version;
sha256 = "148m0vgwm6l8drcx6j3fjs2zpdzvslk4w2nkb8nm0g8qdlm6gjlw";
};
propagatedBuildInputs = [
bitbox02
ecdsa
hidapi
libusb1
mnemonic
pyaes
typing-extensions
];
# tests require to clone quite a few firmwares
doCheck = false;
pythonImportsCheck = [ "hwilib" ];
meta = {
description = "Bitcoin Hardware Wallet Interface";
homepage = "https://github.com/bitcoin-core/hwi";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ prusnak ];
};
}