2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, base58
|
|
|
|
, ecdsa
|
|
|
|
, hidapi
|
|
|
|
, noiseprotocol
|
|
|
|
, protobuf
|
|
|
|
, semver
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bitbox02";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "6.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-zt4G45nJjtU2/tbYpCEgjaoA+Xtpe9g2OpQaxfMzCb8=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|