From 552ebcf2ea6a6ae34f783d2e070e418a4c9c4f6c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 13:11:19 +0200 Subject: [PATCH 1/4] python312Packages.cyclonedx-python-lib: 6.4.4 -> 7.3.2 Diff: https://github.com/CycloneDX/cyclonedx-python-lib/compare/refs/tags/v6.4.4...v7.3.2 Changelog: https://github.com/CycloneDX/cyclonedx-python-lib/releases/tag/v7.3.2 --- .../python-modules/cyclonedx-python-lib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix index 10cd64f83e62..b6f1f8fbe892 100644 --- a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix +++ b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix @@ -23,7 +23,7 @@ buildPythonPackage rec { pname = "cyclonedx-python-lib"; - version = "6.4.4"; + version = "7.3.2"; pyproject = true; disabled = pythonOlder "3.9"; @@ -32,7 +32,7 @@ buildPythonPackage rec { owner = "CycloneDX"; repo = "cyclonedx-python-lib"; rev = "refs/tags/v${version}"; - hash = "sha256-PNacp16WZHNblFyA117hSL87IKGMrW0OYNXCSoBoO8Q="; + hash = "sha256-z+QBjMT0L7dqCJvbwok9TWQajIPzmAq3XPLWFxmhPsk="; }; nativeBuildInputs = [ From e18c33a8e6eeb2654607471ed30ed76cdad92731 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 13:45:02 +0200 Subject: [PATCH 2/4] checkov: relax cyclonedx-python-lib --- pkgs/development/tools/analysis/checkov/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/tools/analysis/checkov/default.nix b/pkgs/development/tools/analysis/checkov/default.nix index bb9506dee19a..4ce6bfe860ea 100644 --- a/pkgs/development/tools/analysis/checkov/default.nix +++ b/pkgs/development/tools/analysis/checkov/default.nix @@ -23,6 +23,7 @@ python3.pkgs.buildPythonApplication rec { "bc-python-hcl2" "boto3" "botocore" + "cyclonedx-python-lib" "dpath" "igraph" "license-expression" From 51da4621cd15c85958fa62e54e3baa7193ba6d75 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 13:47:40 +0200 Subject: [PATCH 3/4] python312Packages.cyclonedx-python-lib: refactor --- .../python-modules/cyclonedx-python-lib/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix index b6f1f8fbe892..89cd5f6f1046 100644 --- a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix +++ b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix @@ -35,12 +35,15 @@ buildPythonPackage rec { hash = "sha256-z+QBjMT0L7dqCJvbwok9TWQajIPzmAq3XPLWFxmhPsk="; }; - nativeBuildInputs = [ + build-system = [ poetry-core + ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; - propagatedBuildInputs = [ + dependencies = [ importlib-metadata license-expression packageurl-python From a96f5b3439f1234340a2ab4845267a522bbabb97 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 13:48:02 +0200 Subject: [PATCH 4/4] python312Packages.cyclonedx-python-lib: format with nixfmt --- .../cyclonedx-python-lib/default.nix | 63 ++++++++----------- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix index 89cd5f6f1046..a065168d53c8 100644 --- a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix +++ b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, ddt -, fetchFromGitHub -, importlib-metadata -, jsonschema -, license-expression -, lxml -, packageurl-python -, py-serializable -, pythonRelaxDepsHook -, poetry-core -, pytestCheckHook -, pythonOlder -, requirements-parser -, sortedcontainers -, setuptools -, toml -, types-setuptools -, types-toml -, xmldiff +{ + lib, + buildPythonPackage, + ddt, + fetchFromGitHub, + importlib-metadata, + jsonschema, + license-expression, + lxml, + packageurl-python, + py-serializable, + pythonRelaxDepsHook, + poetry-core, + pytestCheckHook, + pythonOlder, + requirements-parser, + sortedcontainers, + setuptools, + toml, + types-setuptools, + types-toml, + xmldiff, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { hash = "sha256-z+QBjMT0L7dqCJvbwok9TWQajIPzmAq3XPLWFxmhPsk="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ importlib-metadata @@ -64,21 +61,15 @@ buildPythonPackage rec { xmldiff ]; - pythonImportsCheck = [ - "cyclonedx" - ]; + pythonImportsCheck = [ "cyclonedx" ]; - pythonRelaxDeps = [ - "py-serializable" - ]; + pythonRelaxDeps = [ "py-serializable" ]; preCheck = '' export PYTHONPATH=tests''${PYTHONPATH+:$PYTHONPATH} ''; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; disabledTests = [ # These tests require network access