Skip to content

Commit

Permalink
feat(back): fluidattacks#1171 use new builtin
Browse files Browse the repository at this point in the history
- Migrate calculateCvss3
- Migrate lintWithLizard

Signed-off-by: Daniel Salazar <podany270895@gmail.com>
  • Loading branch information
dsalaza4 committed Jan 9, 2024
1 parent 8078e56 commit b6ffcd6
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/args/calculate-cvss-3/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
__nixpkgs__,
makeDerivation,
makePythonPypiEnvironment,
makePythonEnvironment,
...
}: envTarget:
makeDerivation {
Expand All @@ -12,9 +12,9 @@ makeDerivation {
name = "calculate-cvss-3";
searchPaths = {
source = [
(makePythonPypiEnvironment {
name = "cvss";
sourcesYaml = ./sources.yaml;
(makePythonEnvironment {
pythonProjectDir = ./.;
pythonVersion = "3.11";
})
];
};
Expand Down
17 changes: 17 additions & 0 deletions src/args/calculate-cvss-3/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/args/calculate-cvss-3/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
name = "calculate-cvss-3"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
cvss = "2.3"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
8 changes: 4 additions & 4 deletions src/args/lint-with-lizard/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
makeDerivation,
makeDerivationParallel,
makePythonPypiEnvironment,
makePythonEnvironment,
...
}: {
targets,
Expand All @@ -16,9 +16,9 @@
name = "build-lint-with-lizard-for-${name}-${envTarget}";
searchPaths = {
source = [
(makePythonPypiEnvironment {
name = "lizard";
sourcesYaml = ./sources.yaml;
(makePythonEnvironment {
pythonProjectDir = ./.;
pythonVersion = "3.11";
})
];
};
Expand Down
17 changes: 17 additions & 0 deletions src/args/lint-with-lizard/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/args/lint-with-lizard/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
name = "lint-with-lizard"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
lizard = "1.17.3"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit b6ffcd6

Please sign in to comment.