safety-cli: init at 0.5.1

This commit is contained in:
Thomas Desrosiers 2020-05-04 11:57:59 -04:00 committed by Jon
parent b6b2b3c979
commit 05bcfa1820
3 changed files with 37 additions and 0 deletions

View 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 ];
};
}

View File

@ -6414,6 +6414,8 @@ in
safe = callPackage ../tools/security/safe { }; safe = callPackage ../tools/security/safe { };
safety-cli = with python3.pkgs; toPythonApplication safety;
safe-rm = callPackage ../tools/system/safe-rm { }; safe-rm = callPackage ../tools/system/safe-rm { };
safeeyes = callPackage ../applications/misc/safeeyes { }; safeeyes = callPackage ../applications/misc/safeeyes { };

View File

@ -5670,6 +5670,8 @@ in {
safe = callPackage ../development/python-modules/safe { }; safe = callPackage ../development/python-modules/safe { };
safety = callPackage ../development/python-modules/safety { };
sampledata = callPackage ../development/python-modules/sampledata { }; sampledata = callPackage ../development/python-modules/sampledata { };
sasmodels = callPackage ../development/python-modules/sasmodels { }; sasmodels = callPackage ../development/python-modules/sasmodels { };