Commit cbd79172 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

pip-audit: format with nixfmt

parent 501cb1c7
Loading
Loading
Loading
Loading
+19 −19
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, python3
{
  lib,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
@@ -15,11 +16,11 @@ python3.pkgs.buildPythonApplication rec {
    hash = "sha256-MRFfF5OygUCIdUnPvxhYk4IcLSWGgmlw2qgzPoZDniw=";
  };

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

  dependencies = 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);