Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5 }: 6 7buildPythonPackage rec { 8 pname = "ledgercomm"; 9 version = "1.1.2"; 10 format = "pyproject"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-izOPbwv+34Xq8mpq9+QRIGhd+z4pVnGJSMnYOktRVbs="; 15 }; 16 17 nativeBuildInputs = [ 18 setuptools 19 ]; 20 21 pythonImportsCheck = [ 22 "ledgercomm" 23 ]; 24 25 meta = with lib; { 26 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."; 27 homepage = "https://github.com/LedgerHQ/ledgercomm"; 28 license = licenses.mit; 29 }; 30}