depot/third_party/nixpkgs/pkgs/development/python-modules/ledgercomm/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

32 lines
670 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.";
homepage = "https://github.com/LedgerHQ/ledgercomm";
license = licenses.mit;
};
}