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

Merge pull request #308184 from fabaff/pip-audit-bump

pip-audit: 2.7.2 -> 2.7.3
parents 36473211 cbd79172
Loading
Loading
Loading
Loading
+23 −23
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, python3
{
  lib,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "pip-audit";
  version = "2.7.2";
  version = "2.7.3";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "trailofbits";
    repo = pname;
    repo = "pip-audit";
    rev = "refs/tags/v${version}";
    hash = "sha256-IlIPLuHGmnmt6FgX+Psw+f6XpkuhP+BZ+e4k4DV8e/U=";
    hash = "sha256-MRFfF5OygUCIdUnPvxhYk4IcLSWGgmlw2qgzPoZDniw=";
  };

  nativeBuildInputs = with python3.pkgs; [
    flit-core
  ];
  build-system = with python3.pkgs; [ flit-core ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies =
    with python3.pkgs;
    [
      cachecontrol
      cyclonedx-python-lib
      html5lib
@@ -28,16 +29,15 @@ python3.pkgs.buildPythonApplication rec {
      pip-requirements-parser
      rich
      toml
  ] ++ cachecontrol.optional-dependencies.filecache;
    ]
    ++ cachecontrol.optional-dependencies.filecache;

  nativeCheckInputs = with python3.pkgs; [
    pretend
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pip_audit"
  ];
  pythonImportsCheck = [ "pip_audit" ];

  preCheck = ''
    export HOME=$(mktemp -d);
@@ -60,10 +60,10 @@ python3.pkgs.buildPythonApplication rec {

  meta = with lib; {
    description = "Tool for scanning Python environments for known vulnerabilities";
    mainProgram = "pip-audit";
    homepage = "https://github.com/trailofbits/pip-audit";
    changelog = "https://github.com/pypa/pip-audit/releases/tag/v${version}";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
    mainProgram = "pip-audit";
  };
}