2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
base58,
|
|
|
|
buildPythonPackage,
|
|
|
|
ecdsa,
|
|
|
|
fetchPypi,
|
|
|
|
hidapi,
|
|
|
|
noiseprotocol,
|
|
|
|
protobuf,
|
|
|
|
pythonOlder,
|
|
|
|
semver,
|
|
|
|
setuptools,
|
|
|
|
typing-extensions,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bitbox02";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "6.3.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-0D+yIovlYw8dfDUeW+vcualbvmLs+IySkTpmHwk2meM=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
base58
|
|
|
|
ecdsa
|
|
|
|
hidapi
|
|
|
|
noiseprotocol
|
|
|
|
protobuf
|
|
|
|
semver
|
|
|
|
typing-extensions
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "bitbox02" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Firmware code of the BitBox02 hardware wallet";
|
|
|
|
homepage = "https://github.com/digitalbitbox/bitbox02-firmware/";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/digitalbitbox/bitbox02-firmware/blob/py-bitbox02-${version}/CHANGELOG.md";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|