Merge pull request #273300 from fabaff/nvdlib-bump

python311Packages.nvdlib: init at 0.7.6, python311Packages.avidtools: init 0.1.1.2
This commit is contained in:
Fabian Affolter 2023-12-11 11:44:55 +01:00 committed by GitHub
commit 0da73064d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, datetime
, fetchPypi
, nvdlib
, pydantic
, pythonOlder
, setuptools
, typing
, typing-extensions
}:
buildPythonPackage rec {
pname = "avidtools";
version = "0.1.1.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-t+ohPjOBwY8i+g7VC30ehEu6SFIsn1SwGR/ICkV9blg=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
datetime
nvdlib
pydantic
typing
typing-extensions
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"avidtools"
];
meta = with lib; {
description = "Developer tools for AVID";
homepage = "https://github.com/avidml/avidtools";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, responses
, setuptools
}:
buildPythonPackage rec {
pname = "nvdlib";
version = "0.7.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Vehemont";
repo = "nvdlib";
rev = "refs/tags/v${version}";
hash = "sha256-p2xx+QC0P30FR+nMiFW/PoINbcTM49ufADW9B9u2WxI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"nvdlib"
];
meta = with lib; {
description = "Module to interact with the National Vulnerability CVE/CPE API";
homepage = "https://github.com/Vehemont/nvdlib/";
changelog = "https://github.com/vehemont/nvdlib/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -955,6 +955,8 @@ self: super: with self; {
avea = callPackage ../development/python-modules/avea { };
avidtools = callPackage ../development/python-modules/avidtools { };
avion = callPackage ../development/python-modules/avion { };
avro3k = callPackage ../development/python-modules/avro3k { };
@ -8424,6 +8426,8 @@ self: super: with self; {
nvchecker = callPackage ../development/python-modules/nvchecker { };
nvdlib = callPackage ../development/python-modules/nvdlib { };
nvidia-ml-py = callPackage ../development/python-modules/nvidia-ml-py { };
nsz = callPackage ../development/python-modules/nsz { };