1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5, setuptools-scm 6 }: 7 8buildPythonPackage rec { 9 pname = "ledgercomm"; 10 version = "1.2.0"; 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-HunJjIRa3IpSL/3pZPf6CroLxEK/l7ihh737VOAILgU="; 16 }; 17 18 nativeBuildInputs = [ 19 setuptools 20 setuptools-scm 21 ]; 22 23 pythonImportsCheck = [ 24 "ledgercomm" 25 ]; 26 27 meta = with lib; { 28 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."; 29 homepage = "https://github.com/LedgerHQ/ledgercomm"; 30 license = licenses.mit; 31 }; 32}