Files
nixpkgs/pkgs/development/python-modules/hwi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1013 B
Nix

{
lib,
bitbox02,
buildPythonPackage,
cbor,
ecdsa,
fetchFromGitHub,
hidapi,
libusb1,
mnemonic,
pyaes,
pyserial,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "hwi";
version = "3.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bitcoin-core";
repo = "HWI";
tag = version;
hash = "sha256-sQqft+5M+X+91bFqpUrbDRrFzpe/l1+w+pnIHwqezR8=";
};
propagatedBuildInputs = [
bitbox02
cbor
ecdsa
hidapi
libusb1
mnemonic
pyaes
pyserial
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";
changelog = "https://github.com/bitcoin-core/HWI/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ prusnak ];
};
}