depot/third_party/nixpkgs/pkgs/development/python-modules/ledgercomm/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
706 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "ledgercomm";
version = "1.2.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-AVz8BfFrjFn4zB2fwLiTWSPx/MOAbTPutrDgVbRPWpE=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
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";
mainProgram = "ledgercomm-send";
homepage = "https://github.com/LedgerHQ/ledgercomm";
license = licenses.mit;
};
}