From 7f6010089f6794ab1253d4ca2b4c93a0500e0c02 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Mar 2026 14:44:30 +0100 Subject: [PATCH] qbom: init at 0.1.0-unstable-2026-01-21 Quantum Bill of Materials (QBOM) tool https://github.com/csnp/qbom --- pkgs/by-name/qb/qbom/package.nix | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/qb/qbom/package.nix diff --git a/pkgs/by-name/qb/qbom/package.nix b/pkgs/by-name/qb/qbom/package.nix new file mode 100644 index 000000000000..22a04b0b9470 --- /dev/null +++ b/pkgs/by-name/qb/qbom/package.nix @@ -0,0 +1,55 @@ +{ + lib, + python3, + fetchFromGitHub, + writableTmpDirAsHomeHook, +}: + +python3.pkgs.buildPythonApplication (finalAttrs: { + pname = "qbom"; + version = "0.1.0-unstable-2026-01-21"; + pyproject = true; + + src = fetchFromGitHub { + owner = "csnp"; + repo = "qbom"; + rev = "817414c311faac8da99042be82d9449019a8e9f9"; + hash = "sha256-qTcNoQZkcTaHQyZ0Lqbt1XlXsV15+tOcv7f+K7ydqmw="; + }; + + build-system = with python3.pkgs; [ hatchling ]; + + dependencies = with python3.pkgs; [ + click + pydantic + rich + xxhash + ]; + + optional-dependencies = with python3.pkgs; { + all = [ + cirq + pennylane + qiskit + ]; + cirq = [ cirq ]; + pennylane = [ pennylane ]; + qiskit = [ qiskit ]; + }; + + nativeCheckInputs = with python3.pkgs; [ + pytest-cov-stub + pytestCheckHook + writableTmpDirAsHomeHook + ]; + + pythonImportsCheck = [ "qbom" ]; + + meta = { + description = "Quantum Bill of Materials (QBOM) tool"; + homepage = "https://github.com/csnp/qbom"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "qbom"; + }; +})