safety-cli: init at 0.5.1
This commit is contained in:
parent
b6b2b3c979
commit
05bcfa1820
33
pkgs/development/python-modules/safety/default.nix
Normal file
33
pkgs/development/python-modules/safety/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, requests, dparse, click, setuptools, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "safety";
|
||||
version = "1.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "23bf20690d4400edc795836b0c983c2b4cbbb922233108ff925b7dd7750f00c9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests dparse click setuptools ];
|
||||
|
||||
# Disable tests depending on online services
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
dontUseSetuptoolsCheck = true;
|
||||
disabledTests = [
|
||||
"test_check_live"
|
||||
"test_check_live_cached"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"Safety checks your installed dependencies for known security vulnerabilities";
|
||||
homepage = "https://github.com/pyupio/safety";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ thomasdesr ];
|
||||
};
|
||||
}
|
@ -6414,6 +6414,8 @@ in
|
||||
|
||||
safe = callPackage ../tools/security/safe { };
|
||||
|
||||
safety-cli = with python3.pkgs; toPythonApplication safety;
|
||||
|
||||
safe-rm = callPackage ../tools/system/safe-rm { };
|
||||
|
||||
safeeyes = callPackage ../applications/misc/safeeyes { };
|
||||
|
@ -5670,6 +5670,8 @@ in {
|
||||
|
||||
safe = callPackage ../development/python-modules/safe { };
|
||||
|
||||
safety = callPackage ../development/python-modules/safety { };
|
||||
|
||||
sampledata = callPackage ../development/python-modules/sampledata { };
|
||||
|
||||
sasmodels = callPackage ../development/python-modules/sasmodels { };
|
||||
|
Loading…
Reference in New Issue
Block a user