1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 intelhex,
8}:
9
10buildPythonPackage rec {
11 pname = "lpc-checksum";
12 version = "3.0.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "basilfx";
17 repo = "lpc_checksum";
18 rev = "v${version}";
19 hash = "sha256-POgV0BdkMLmdjBh/FToPPmJTAxsPASB7ZE32SqGGKHk=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 pytestCheckHook
25 ];
26
27 propagatedBuildInputs = [ intelhex ];
28
29 pythonImportsCheck = [ "lpc_checksum" ];
30
31 meta = with lib; {
32 description = "Python script to calculate LPC firmware checksums";
33 mainProgram = "lpc_checksum";
34 homepage = "https://pypi.org/project/lpc-checksum/";
35 license = licenses.mit;
36 maintainers = with maintainers; [ otavio ];
37 };
38}