mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
cf3f392abe
Tool to detect malicious/vulnerable open-source dependencies https://github.com/ossillate-inc/packj
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "packj";
|
|
version = "0.15-beta";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ossillate-inc";
|
|
repo = "packj";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OWcJE2Gtjgoj9bCGZcHDfAFLWRP4wdENeJAnILMdUXY=";
|
|
};
|
|
|
|
preBuild = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
asttokens
|
|
colorama
|
|
django
|
|
dnspython
|
|
esprima
|
|
func-timeout
|
|
github3-py
|
|
gitpython
|
|
networkx
|
|
protobuf
|
|
pyisemail
|
|
python-dateutil
|
|
python-gitlab
|
|
python-magic
|
|
pytz
|
|
pyyaml
|
|
rarfile
|
|
requests
|
|
six
|
|
tldextract
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"packj"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to detect malicious/vulnerable open-source dependencies";
|
|
homepage = "https://github.com/ossillate-inc/packj";
|
|
changelog = "https://github.com/ossillate-inc/packj/releases/tag/v${version}";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "packj";
|
|
};
|
|
}
|