Unverified Commit 90451528 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

pythonPackages.macholib: init at 1.16.3 (#344926)

parents 1228db54 ab3b2722
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6590,6 +6590,13 @@
    githubId = 195032;
    name = "Eric Evenchick";
  };
  eveeifyeve = {
    name = "Eveeifyeve";
    github = "eveeifyeve";
    githubId = 88671402;
    matrix = "@eveeifyeve:matrix.org";
    email = "eveeg1971@gmail.com";
  };
  evenbrenden = {
    email = "packages@anythingexternal.com";
    github = "evenbrenden";
+55 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  unittestCheckHook,
  altgraph,
  setuptools,
  typing-extensions,
  pyinstaller,
}:

buildPythonPackage rec {
  pname = "macholib";
  version = "1.16.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ronaldoussoren";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-bTql10Ceny4fBCxnEWz1m1wi03EWMDW9u99IQiWYbnY=";
  };

  build-system = [ setuptools ];

  dependencies =
    [
      altgraph
    ]
    ++ lib.optionals (pythonOlder "3.11") [
      typing-extensions
    ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  passthru.tests = {
    inherit pyinstaller; # Requires macholib for darwin
  };

  preCheck = ''
    export PATH="$PATH:$out/bin"
  '';

  meta = with lib; {
    description = "Analyze and edit Mach-O headers, the executable format used by Mac OS X.";
    homepage = "https://github.com/ronaldoussoren/macholib";
    changelog = "https://github.com/ronaldoussoren/macholib/releases/tag/v${version}";
    license = licenses.mit;
    platforms = platforms.darwin;
    maintainers = with maintainers; [ eveeifyeve ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7509,6 +7509,8 @@ self: super: with self; {
    inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
  };
  macholib = callPackage ../development/python-modules/macholib { };
  macropy = callPackage ../development/python-modules/macropy { };
  maec = callPackage ../development/python-modules/maec { };