Unverified Commit 6601717e authored by Pierre Bourdon's avatar Pierre Bourdon Committed by GitHub
Browse files

Merge pull request #269397 from NixOS/backport-268561-to-release-23.11

[Backport release-23.11] python3Packages.lpc-checksum: init at 3.0.0
parents 11ce9e84 26bc332c
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{ 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";
    homepage = "https://pypi.org/project/lpc-checksum/";
    license = licenses.mit;
    maintainers = with maintainers; [ otavio ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6479,6 +6479,8 @@ self: super: with self; {
  losant-rest = callPackage ../development/python-modules/losant-rest { };
  lpc-checksum = callPackage ../development/python-modules/lpc-checksum { };
  lrcalc-python = callPackage ../development/python-modules/lrcalc-python { };
  lru-dict = callPackage ../development/python-modules/lru-dict { };