pythonPackages.macholib: init at 1.16.3

pythonPackages.macholib: fix readability

pythonPackages.macholib.test: init

pythonPackages.macholib: fix platforms
This commit is contained in:
eveeifyeve 2024-09-28 03:53:06 +10:00
parent ee0514b6df
commit ab3b272228
2 changed files with 57 additions and 0 deletions

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