btchip: init at 0.1.28
electrum and electron-cash: add support for btchip library (#40816)
This commit is contained in:
parent
09df5da98f
commit
483e2a1a6b
@ -34,6 +34,7 @@ python3Packages.buildPythonApplication rec {
|
|||||||
# plugins
|
# plugins
|
||||||
keepkey
|
keepkey
|
||||||
trezor
|
trezor
|
||||||
|
btchip
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
@ -41,10 +41,10 @@ python3Packages.buildPythonApplication rec {
|
|||||||
# plugins
|
# plugins
|
||||||
keepkey
|
keepkey
|
||||||
trezor
|
trezor
|
||||||
|
btchip
|
||||||
|
|
||||||
# TODO plugins
|
# TODO plugins
|
||||||
# amodem
|
# amodem
|
||||||
# btchip
|
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
23
pkgs/development/python-modules/btchip/default.nix
Normal file
23
pkgs/development/python-modules/btchip/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "btchip-python";
|
||||||
|
version = "0.1.28";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "10yxwlsr99gby338rsnczkfigcy36fiajpkr6f44438qlvbx02fs";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ hidapi pyscard ecdsa ];
|
||||||
|
|
||||||
|
# tests requires hardware
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Python communication library for Ledger Hardware Wallet products";
|
||||||
|
homepage = "https://github.com/LedgerHQ/btchip-python";
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
@ -250,6 +250,8 @@ in {
|
|||||||
|
|
||||||
dependency-injector = callPackage ../development/python-modules/dependency-injector { };
|
dependency-injector = callPackage ../development/python-modules/dependency-injector { };
|
||||||
|
|
||||||
|
btchip = callPackage ../development/python-modules/btchip { };
|
||||||
|
|
||||||
dbf = callPackage ../development/python-modules/dbf { };
|
dbf = callPackage ../development/python-modules/dbf { };
|
||||||
|
|
||||||
dbfread = callPackage ../development/python-modules/dbfread { };
|
dbfread = callPackage ../development/python-modules/dbfread { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user