1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "ledgercomm";
11 version = "1.2.1";
12 format = "pyproject";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-AVz8BfFrjFn4zB2fwLiTWSPx/MOAbTPutrDgVbRPWpE=";
17 };
18
19 nativeBuildInputs = [
20 setuptools
21 setuptools-scm
22 ];
23
24 pythonImportsCheck = [ "ledgercomm" ];
25
26 meta = with lib; {
27 description = "Python library to send and receive APDU through HID or TCP socket. It can be used with a Ledger Nano S/X or with the Speculos emulator";
28 mainProgram = "ledgercomm-send";
29 homepage = "https://github.com/LedgerHQ/ledgercomm";
30 license = licenses.mit;
31 };
32}