Commit 0559d6b9 authored by MrSmör's avatar MrSmör Committed by Sigmanificient
Browse files

python3Packages.libdebug: init at 0.9.0

parent f4ae8e46
Loading
Loading
Loading
Loading
+71 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cmake,
  elfutils,
  fetchFromGitHub,
  libdwarf,
  libiberty,
  nanobind,
  ninja,
  pkg-config,
  prompt-toolkit,
  psutil,
  pyelftools,
  requests,
  scikit-build-core,
  typing-extensions,
  writableTmpDirAsHomeHook,
  zlib,
  zstd,
}:

buildPythonPackage (finalAttrs: {
  pname = "libdebug";
  version = "0.9.0";

  src = fetchFromGitHub {
    owner = "libdebug";
    repo = "libdebug";
    tag = finalAttrs.version;

    hash = "sha256-J0ETzqAGufsZyW+XDhJCKwX1rrmDBwlAicvBb1AAiIQ=";
  };

  dontUseCmakeConfigure = true;
  pyproject = true;
  build-system = [ scikit-build-core ];

  buildInputs = [
    libdwarf
    elfutils
    zstd
    libiberty
    zlib
  ];

  dependencies = [
    psutil
    pyelftools
    requests
    prompt-toolkit
    nanobind
    typing-extensions
  ];

  nativeBuildInputs = [
    pkg-config
    cmake
    ninja
  ];

  nativeCheckInputs = [ writableTmpDirAsHomeHook ];

  pythonImportsCheck = [ "libdebug" ];
  meta = {
    homepage = "https://github.com/libdebug/libdebug";
    description = "Programmatic debugging of userland Linux binaries";
    maintainers = with lib.maintainers; [ mrsmoer ];
    license = lib.licenses.mit;
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -8477,6 +8477,8 @@ self: super: with self; {
  libcst = callPackage ../development/python-modules/libcst { };
  libdebug = callPackage ../development/python-modules/libdebug { inherit (pkgs) zstd; };
  libdnf = lib.pipe pkgs.libdnf [
    toPythonModule
    (