pythonPackages.macholib: init at 1.16.3 (#344926)
This commit is contained in:
commit
9045152853
@ -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
pkgs/development/python-modules/macholib/default.nix
Normal file
55
pkgs/development/python-modules/macholib/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user