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

Merge pull request #273300 from fabaff/nvdlib-bump

python311Packages.nvdlib: init at 0.7.6, python311Packages.avidtools: init 0.1.1.2
parents 36635a3c 1ee8c8c4
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+49 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -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 { };