depot/third_party/nixpkgs/pkgs/development/python-modules/hwi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 lines
1 KiB
Nix

{
lib,
bitbox02,
buildPythonPackage,
cbor,
ecdsa,
fetchFromGitHub,
hidapi,
libusb1,
mnemonic,
pyaes,
pyserial,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "hwi";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bitcoin-core";
repo = "HWI";
rev = "refs/tags/${version}";
hash = "sha256-hpMH3Zy3/TTBYUukJQZw63f0KuE3O9G2aYcGdL6Q3eM=";
};
propagatedBuildInputs = [
bitbox02
cbor
ecdsa
hidapi
libusb1
mnemonic
pyaes
pyserial
typing-extensions
];
# Tests require to clone quite a few firmwares
doCheck = false;
pythonImportsCheck = [ "hwilib" ];
meta = with lib; {
description = "Bitcoin Hardware Wallet Interface";
homepage = "https://github.com/bitcoin-core/hwi";
changelog = "https://github.com/bitcoin-core/HWI/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ prusnak ];
};
}