depot/third_party/nixpkgs/pkgs/development/python-modules/ledgercomm/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

30 lines
634 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "ledgercomm";
version = "1.1.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-izOPbwv+34Xq8mpq9+QRIGhd+z4pVnGJSMnYOktRVbs=";
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"ledgercomm"
];
meta = with lib; {
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.";
homepage = "https://github.com/LedgerHQ/ledgercomm";
license = licenses.mit;
};
}