base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / po / poetry / plugins / poetry-audit-plugin.nix
blob6c3f120171bef31acc9386ca183a12c7b66aaf8c
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , poetry
7 , safety
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "poetry-audit-plugin";
13   version = "0.4.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "opeco17";
20     repo = "poetry-audit-plugin";
21     rev = "refs/tags/${version}";
22     hash = "sha256-kiNtzEup2ygCTk0zk8YV2jxAj6ZzOhP8v0U4FbV15hI=";
23   };
25   nativeBuildInputs = [
26     poetry-core
27   ];
29   buildInputs = [
30     poetry
31   ];
33   propagatedBuildInputs = [
34     safety
35   ];
37   pythonImportsCheck = [ "poetry_audit_plugin" ];
39   nativeCheckInputs = [
40     poetry  # for the executable
41     pytestCheckHook
42   ];
44   # requires networking
45   doCheck = false;
47   meta = {
48     description = "Poetry plugin for checking security vulnerabilities in dependencies";
49     homepage = "https://github.com/opeco17/poetry-audit-plugin";
50     license = lib.licenses.mit;
51     maintainers = with lib.maintainers; [ dotlambda ];
52   };