From b37656cd6afd4bc82f2483da57078eea0462c21e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Jun 2026 09:51:39 +0200 Subject: [PATCH] python3Packages.ida-settings: init at 3.4.1 Fetch and set configuration values for IDA Plugins https://github.com/williballenthin/ida-settings --- .../python-modules/ida-settings/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/ida-settings/default.nix diff --git a/pkgs/development/python-modules/ida-settings/default.nix b/pkgs/development/python-modules/ida-settings/default.nix new file mode 100644 index 000000000000..609090e45e7e --- /dev/null +++ b/pkgs/development/python-modules/ida-settings/default.nix @@ -0,0 +1,47 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + uv-build, + ida-hcli, + nix-update-script, +}: + +buildPythonPackage (finalAttrs: { + pname = "ida-settings"; + version = "3.4.1"; + pyproject = true; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "williballenthin"; + repo = "ida-settings"; + tag = "v${finalAttrs.version}"; + hash = "sha256-YPkJ/yn7ZmEYZJART6oFLO7zIqzgPl2XCq5RfXasFV0="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.8.6,<0.9.0" "uv_build" + ''; + + build-system = [ uv-build ]; + + dependencies = [ ida-hcli ]; + + pythonImportsCheck = [ "ida_settings" ]; + + # Module has no tests + doCheck = false; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fetch and set configuration values for IDA Plugins"; + homepage = "https://github.com/williballenthin/ida-settings"; + changelog = "https://github.com/williballenthin/ida-settings/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ef5734a6bd4a..5657b4020b3a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7497,6 +7497,8 @@ self: super: with self; { ida-hcli = callPackage ../development/python-modules/ida-hcli { }; + ida-settings = callPackage ../development/python-modules/ida-settings { }; + idapro = callPackage ../development/python-modules/idapro { }; idasen = callPackage ../development/python-modules/idasen { };