From 9b4856af471db1e7eaff9486c5dcccd53d287454 Mon Sep 17 00:00:00 2001 From: Krishnan Shankar Date: Fri, 13 Feb 2026 14:13:43 -0600 Subject: [PATCH] logic2-automation: init at 1.0.11 --- .../logic2-automation/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/logic2-automation/default.nix diff --git a/pkgs/development/python-modules/logic2-automation/default.nix b/pkgs/development/python-modules/logic2-automation/default.nix new file mode 100644 index 000000000000..4ed3e086519b --- /dev/null +++ b/pkgs/development/python-modules/logic2-automation/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build + hatchling, + + # dependencies + grpcio, + grpcio-tools, + protobuf, +}: + +buildPythonPackage (finalAttrs: { + pname = "logic2-automation"; + version = "1.0.11"; + + src = fetchFromGitHub { + owner = "saleae"; + repo = "logic2-automation"; + tag = "v${finalAttrs.version}"; + hash = "sha256-e0UvRwUs+rKFF3ky8bnHV22ZA9sU+AoghcMui2pIzQ0="; + }; + + sourceRoot = "source/python"; + + preBuild = "./build.sh"; + + pyproject = true; + + build-system = [ + hatchling + ]; + + dependencies = [ + grpcio + grpcio-tools + protobuf + ]; + + # Tests require the unfree saleae-logic-2 package, plus gRPC server which is not packaged, yet. + doCheck = false; + + pythonImportsCheck = [ "saleae.automation" ]; + + meta = { + description = "Automation interface for Saleae Logic 2 software"; + homepage = "https://github.com/saleae/logic2-automation"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ krishnans2006 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 59128805b25d..72b0024629e4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9450,6 +9450,8 @@ self: super: with self; { logging-tree = callPackage ../development/python-modules/logging-tree { }; + logic2-automation = callPackage ../development/python-modules/logic2-automation { }; + logical-unification = callPackage ../development/python-modules/logical-unification { }; logilab-common = callPackage ../development/python-modules/logilab/common.nix {