Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
unittestCheckHook,
|
|
altgraph,
|
|
setuptools,
|
|
typing-extensions,
|
|
pyinstaller,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "macholib";
|
|
version = "1.16.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ronaldoussoren";
|
|
repo = "macholib";
|
|
rev = "v${version}";
|
|
hash = "sha256-bTql10Ceny4fBCxnEWz1m1wi03EWMDW9u99IQiWYbnY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
altgraph
|
|
]
|
|
++ lib.optionals (pythonOlder "3.11") [
|
|
typing-extensions
|
|
];
|
|
|
|
# Checks assume to find darwin specific libraries
|
|
doCheck = stdenv.buildPlatform.isDarwin;
|
|
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;
|
|
maintainers = with maintainers; [ eveeifyeve ];
|
|
};
|
|
}
|