Unverified Commit a4c0ed40 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.pypcode: init at 3.3.3 (#497495)

parents 2ff0010e ae994145
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cmake,
  fetchFromGitHub,
  nanobind,
  pytest-cov-stub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "pypcode";
  version = "3.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "angr";
    repo = "pypcode";
    tag = "v${finalAttrs.version}";
    hash = "sha256-m3Ee1n6TIbcihTwz1ihpn10gC1YsSlFO17Gj0QVya2A=";
  };

  build-system = [
    cmake
    setuptools
    nanobind
  ];

  dontUseCmakeConfigure = true;

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
  ];

  pythonImportsCheck = [ "pypcode" ];

  preCheck = ''
    cd ..
  '';

  meta = {
    description = "Machine code disassembly and IR translation library";
    homepage = "https://github.com/angr/pypcode";
    license = with lib.licenses; [
      bsd2
      asl20
      zlib
    ];
    maintainers = with lib.maintainers; [ feyorsh ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -14432,6 +14432,8 @@ self: super: with self; {
  pypck = callPackage ../development/python-modules/pypck { };
  pypcode = callPackage ../development/python-modules/pypcode { };
  pypdf = callPackage ../development/python-modules/pypdf { };
  pypdf2 = callPackage ../development/python-modules/pypdf2 { };