2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }:
|
2018-10-01 23:13:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "btchip-python";
|
2021-02-11 02:55:39 +00:00
|
|
|
version = "0.1.32";
|
2018-10-01 23:13:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-11 02:55:39 +00:00
|
|
|
sha256 = "34f5e0c161c08f65dc0d070ba2ff4c315ed21c4b7e0faa32a46862d0dc1b8f55";
|
2018-10-01 23:13:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ hidapi pyscard ecdsa ];
|
|
|
|
|
|
|
|
# tests requires hardware
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-11 03:04:37 +00:00
|
|
|
pythonImportsCheck = [ "btchip.btchip" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-01 23:13:03 +01:00
|
|
|
description = "Python communication library for Ledger Hardware Wallet products";
|
|
|
|
homepage = "https://github.com/LedgerHQ/btchip-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|