logic2-automation: init at 1.0.11 (#512633)

This commit is contained in:
Sandro
2026-07-01 16:44:41 +00:00
committed by GitHub
2 changed files with 55 additions and 0 deletions

View File

@@ -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 ];
};
})

View File

@@ -9574,6 +9574,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 {