From 2cc4e028292753cba509edf1f3841ce2096928a9 Mon Sep 17 00:00:00 2001 From: ocfox Date: Tue, 4 Apr 2023 12:32:52 +0800 Subject: [PATCH] python3Packages.cyclonedx-python-lib: 3.1.5 -> 4.0.0 --- .../python-modules/cyclonedx-python-lib/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix index c2340dbced0e..e8ba85c3a98a 100644 --- a/pkgs/development/python-modules/cyclonedx-python-lib/default.nix +++ b/pkgs/development/python-modules/cyclonedx-python-lib/default.nix @@ -6,9 +6,10 @@ , jsonschema , lxml , packageurl-python +, py-serializable +, pythonRelaxDepsHook , poetry-core , pytestCheckHook -, python , pythonOlder , requirements-parser , sortedcontainers @@ -21,7 +22,7 @@ buildPythonPackage rec { pname = "cyclonedx-python-lib"; - version = "3.1.5"; + version = "4.0.0"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -30,11 +31,12 @@ buildPythonPackage rec { owner = "CycloneDX"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-4lA8OdmvQD94jTeDf+Iz7ZyEQ9fZzCxnXQG9Ir8FKhk="; + hash = "sha256-xXtUEunPYiuVh+1o4xoFutGstZ918ju5xK5zLvgbLHc="; }; nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -44,6 +46,7 @@ buildPythonPackage rec { setuptools sortedcontainers toml + py-serializable types-setuptools types-toml ]; @@ -60,6 +63,10 @@ buildPythonPackage rec { "cyclonedx" ]; + pythonRelaxDeps = [ + "py-serializable" + ]; + preCheck = '' export PYTHONPATH=tests''${PYTHONPATH+:$PYTHONPATH} '';