pythonPackages.macholib: init at 1.16.3 (#344926)

This commit is contained in:
h7x4 2024-09-28 21:42:49 +02:00 committed by GitHub
commit 9045152853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 64 additions and 0 deletions

View File

@ -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";

View File

@ -0,0 +1,55 @@
{
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 ];
};
}

View File

@ -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 { };