depot/third_party/nixpkgs/pkgs/tools/package-management/poetry/plugins/poetry-audit-plugin.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

53 lines
998 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, poetry
, safety
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "poetry-audit-plugin";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "opeco17";
repo = "poetry-audit-plugin";
rev = "refs/tags/${version}";
hash = "sha256-kiNtzEup2ygCTk0zk8YV2jxAj6ZzOhP8v0U4FbV15hI=";
};
nativeBuildInputs = [
poetry-core
];
buildInputs = [
poetry
];
propagatedBuildInputs = [
safety
];
pythonImportsCheck = [ "poetry_audit_plugin" ];
nativeCheckInputs = [
poetry # for the executable
pytestCheckHook
];
# requires networking
doCheck = false;
meta = {
description = "Poetry plugin for checking security vulnerabilities in dependencies";
homepage = "https://github.com/opeco17/poetry-audit-plugin";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}