Unverified Commit 98320de3 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

python3Packages.libdebug: init at 0.9.0 (#469398)

parents b1ada9cf 0559d6b9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18345,6 +18345,12 @@
    githubId = 15896005;
    name = "Vladyslav Burzakovskyy";
  };
  mrsmoer = {
    email = "mrsmoer@protonmail.com";
    github = "MrSmoer";
    githubId = 66489839;
    name = "MrSmör";
  };
  MrSom3body = {
    email = "nix@sndh.dev";
    matrix = "@mrsom3body:matrix.org";
+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
@@ -8676,6 +8676,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
    (