depot/third_party/nixpkgs/pkgs/development/python-modules/lpc-checksum/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
783 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
intelhex,
}:
buildPythonPackage rec {
pname = "lpc-checksum";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "basilfx";
repo = "lpc_checksum";
rev = "v${version}";
hash = "sha256-POgV0BdkMLmdjBh/FToPPmJTAxsPASB7ZE32SqGGKHk=";
};
nativeBuildInputs = [
poetry-core
pytestCheckHook
];
propagatedBuildInputs = [ intelhex ];
pythonImportsCheck = [ "lpc_checksum" ];
meta = with lib; {
description = "Python script to calculate LPC firmware checksums";
mainProgram = "lpc_checksum";
homepage = "https://pypi.org/project/lpc-checksum/";
license = licenses.mit;
maintainers = with maintainers; [ otavio ];
};
}