1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
53 lines
965 B
Nix
53 lines
965 B
Nix
{
|
|
lib,
|
|
bitbox02,
|
|
buildPythonPackage,
|
|
cbor,
|
|
ecdsa,
|
|
fetchFromGitHub,
|
|
hidapi,
|
|
libusb1,
|
|
mnemonic,
|
|
pyaes,
|
|
pyserial,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hwi";
|
|
version = "3.1.0";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|