Merge pull request #309019 from teatwig/cve-bin-tool
cve-util-bin: restructure build inputs
This commit is contained in:
commit
b63c3d4ffb
@ -1,9 +1,13 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, python3Packages
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, pyyaml
|
||||||
|
, semantic-version
|
||||||
|
, defusedxml
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "lib4sbom";
|
pname = "lib4sbom";
|
||||||
version = "0.7.1";
|
version = "0.7.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
@ -15,13 +19,13 @@ python3Packages.buildPythonPackage rec {
|
|||||||
hash = "sha256-UQZZYTRDbUqSH6F8hjhp9L70025cRO3zXQ8Aoznotg4=";
|
hash = "sha256-UQZZYTRDbUqSH6F8hjhp9L70025cRO3zXQ8Aoznotg4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
dependencies = [
|
||||||
pyyaml
|
pyyaml
|
||||||
semantic-version
|
semantic-version
|
||||||
defusedxml
|
defusedxml
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python3Packages; [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
@ -1,35 +1,31 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
# aiohttp[speedups]
|
||||||
|
, aiodns
|
||||||
|
, aiohttp
|
||||||
|
, beautifulsoup4
|
||||||
|
, brotlipy
|
||||||
|
, cvss
|
||||||
|
, distro
|
||||||
, filetype
|
, filetype
|
||||||
|
, google-cloud-sdk
|
||||||
|
, jinja2
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, lib4sbom
|
, lib4sbom
|
||||||
, packageurl-python
|
, packageurl-python
|
||||||
, python-gnupg
|
|
||||||
, plotly
|
|
||||||
, beautifulsoup4
|
|
||||||
, pyyaml
|
|
||||||
, isort
|
|
||||||
, py
|
|
||||||
, jinja2
|
|
||||||
, rpmfile
|
|
||||||
, reportlab
|
|
||||||
, zstandard
|
|
||||||
, rich
|
|
||||||
, aiohttp
|
|
||||||
, toml
|
|
||||||
, distro
|
|
||||||
# aiohttp[speedups]
|
|
||||||
, aiodns
|
|
||||||
, brotlipy
|
|
||||||
, faust-cchardet
|
|
||||||
, pillow
|
|
||||||
, pytestCheckHook
|
|
||||||
, xmlschema
|
|
||||||
, setuptools
|
|
||||||
, packaging
|
, packaging
|
||||||
, cvss
|
, plotly
|
||||||
, google-cloud-sdk
|
, pytestCheckHook
|
||||||
|
, python-gnupg
|
||||||
|
, pyyaml
|
||||||
|
, rich
|
||||||
|
, rpmfile
|
||||||
|
, setuptools
|
||||||
|
, toml
|
||||||
|
, xmlschema
|
||||||
|
, zstandard
|
||||||
|
, reportlab
|
||||||
, pip
|
, pip
|
||||||
, testers
|
, testers
|
||||||
, cve-bin-tool
|
, cve-bin-tool
|
||||||
@ -50,45 +46,45 @@ buildPythonApplication rec {
|
|||||||
# Wants to open a sqlite database, access the internet, etc
|
# Wants to open a sqlite database, access the internet, etc
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedNativeBuildInputs = [
|
dependencies = [
|
||||||
pip
|
# aiohttp[speedups]
|
||||||
];
|
aiodns
|
||||||
|
aiohttp
|
||||||
propagatedBuildInputs = [
|
beautifulsoup4
|
||||||
google-cloud-sdk
|
brotlipy
|
||||||
|
cvss
|
||||||
|
distro
|
||||||
filetype
|
filetype
|
||||||
|
google-cloud-sdk # gsutil
|
||||||
|
jinja2
|
||||||
jsonschema
|
jsonschema
|
||||||
lib4sbom
|
lib4sbom
|
||||||
packageurl-python
|
packageurl-python
|
||||||
python-gnupg
|
|
||||||
plotly
|
|
||||||
beautifulsoup4
|
|
||||||
pyyaml
|
|
||||||
isort
|
|
||||||
py
|
|
||||||
jinja2
|
|
||||||
rpmfile
|
|
||||||
reportlab
|
|
||||||
zstandard
|
|
||||||
rich
|
|
||||||
aiohttp
|
|
||||||
toml
|
|
||||||
distro
|
|
||||||
# aiohttp[speedups]
|
|
||||||
aiodns
|
|
||||||
brotlipy
|
|
||||||
faust-cchardet
|
|
||||||
# needed by brotlipy
|
|
||||||
pillow
|
|
||||||
setuptools
|
|
||||||
xmlschema
|
|
||||||
cvss
|
|
||||||
packaging
|
packaging
|
||||||
|
plotly
|
||||||
|
python-gnupg
|
||||||
|
pyyaml
|
||||||
|
rich
|
||||||
|
rpmfile
|
||||||
|
setuptools
|
||||||
|
toml
|
||||||
|
xmlschema
|
||||||
|
zstandard
|
||||||
|
];
|
||||||
|
|
||||||
|
optional-dependencies = {
|
||||||
|
pdf = [
|
||||||
|
reportlab
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pip
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"cve_bin_tool"
|
"cve_bin_tool"
|
||||||
|
@ -6564,6 +6564,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
pa-ringbuffer = callPackage ../development/python-modules/pa-ringbuffer { };
|
pa-ringbuffer = callPackage ../development/python-modules/pa-ringbuffer { };
|
||||||
|
|
||||||
|
lib4sbom = callPackage ../development/python-modules/lib4sbom { };
|
||||||
|
|
||||||
libais = callPackage ../development/python-modules/libais { };
|
libais = callPackage ../development/python-modules/libais { };
|
||||||
|
|
||||||
libarchive-c = callPackage ../development/python-modules/libarchive-c {
|
libarchive-c = callPackage ../development/python-modules/libarchive-c {
|
||||||
|
Loading…
Reference in New Issue
Block a user