python310Packages.bitbox02: add format
- disable on unsupported Python releases
This commit is contained in:
parent
71f6b1eaaa
commit
ddbc7690ee
1 changed files with 28 additions and 3 deletions
|
@ -1,19 +1,44 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, base58, ecdsa, hidapi, noiseprotocol, protobuf, semver, typing-extensions }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchPypi
|
||||||
|
, base58
|
||||||
|
, ecdsa
|
||||||
|
, hidapi
|
||||||
|
, noiseprotocol
|
||||||
|
, protobuf
|
||||||
|
, semver
|
||||||
|
, typing-extensions
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "bitbox02";
|
pname = "bitbox02";
|
||||||
version = "6.2.0";
|
version = "6.2.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-zt4G45nJjtU2/tbYpCEgjaoA+Xtpe9g2OpQaxfMzCb8=";
|
hash = "sha256-zt4G45nJjtU2/tbYpCEgjaoA+Xtpe9g2OpQaxfMzCb8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ base58 ecdsa hidapi noiseprotocol protobuf semver typing-extensions ];
|
propagatedBuildInputs = [
|
||||||
|
base58
|
||||||
|
ecdsa
|
||||||
|
hidapi
|
||||||
|
noiseprotocol
|
||||||
|
protobuf
|
||||||
|
semver
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
# does not contain tests
|
# does not contain tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "bitbox02" ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"bitbox02"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Firmware code of the BitBox02 hardware wallet";
|
description = "Firmware code of the BitBox02 hardware wallet";
|
||||||
|
|
Loading…
Reference in a new issue