mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 14:24:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
54 lines
998 B
Nix
54 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 ];
|
|
};
|
|
}
|