Unverified Commit e94fc041 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #224583 from ocfox/cyclonedx-python-lib-4.0.0

python3Packages.cyclonedx-python-lib: 3.1.5 -> 4.0.0
parents 9572a3b2 2cc4e028
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -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}
  '';