From ee0514b6df08eb92ce1563c6078a548326f35284 Mon Sep 17 00:00:00 2001 From: eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com> Date: Sat, 28 Sep 2024 03:53:06 +1000 Subject: [PATCH 1/2] lib.maintainers: add eveeifyeve to maintainer list --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d1690081b374..e6916bb1c5b7 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6584,6 +6584,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"; From ab3b272228618dbf204c63403e3c526b5cac4fad Mon Sep 17 00:00:00 2001 From: eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com> Date: Sat, 28 Sep 2024 03:53:06 +1000 Subject: [PATCH 2/2] pythonPackages.macholib: init at 1.16.3 pythonPackages.macholib: fix readability pythonPackages.macholib.test: init pythonPackages.macholib: fix platforms --- .../python-modules/macholib/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/macholib/default.nix diff --git a/pkgs/development/python-modules/macholib/default.nix b/pkgs/development/python-modules/macholib/default.nix new file mode 100644 index 000000000000..f58bcfe18057 --- /dev/null +++ b/pkgs/development/python-modules/macholib/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5f4c18055d16..09fbd6fd81de 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };