2018-10-01 23:13:03 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "btchip-python";
|
2020-07-06 04:59:06 +01:00
|
|
|
version = "0.1.30";
|
2018-10-01 23:13:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-06 04:59:06 +01:00
|
|
|
sha256 = "1mraf2lmh70b038k934adxi7d40431j7yq93my3aws99f5xccsb8";
|
2018-10-01 23:13:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|