Skip to content

Commit

Permalink
Merge pull request #1759 from therealpxc/fix-cyclonedx-and-sarif-libs
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Oct 17, 2024
2 parents 795fdde + 8db272a commit e67cc18
Show file tree
Hide file tree
Showing 6 changed files with 1,091 additions and 0 deletions.
3 changes: 3 additions & 0 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -21771,6 +21771,9 @@
"pbr",
"setuptools"
],
"sarif-tools": [
"poetry-core"
],
"sasmodels": [
"setuptools"
],
Expand Down
4 changes: 4 additions & 0 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,10 @@ lib.composeManyExtensions [
}
);

license-expression = prev.license-expression.overridePythonAttrs (_old: {
dontConfigure = true;
});

llama-cpp-python = prev.llama-cpp-python.overridePythonAttrs (
old: {
buildInputs = with pkgs; lib.optionals stdenv.isDarwin [
Expand Down
13 changes: 13 additions & 0 deletions tests/cyclonedx-and-sarif-tools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ poetry2nix, python3, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
};
in
runCommand "cyclonedx-and-sarif-tools-test" { } ''
export HOME=$(mktemp -d)
${env}/bin/python -c 'import cyclonedx; print(f"cyclonedx {cyclonedx.__version__}")' | tee $out
${env}/bin/sarif --version | tee -a $out
''
Loading

0 comments on commit e67cc18

Please sign in to comment.