Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 870 B view raw
1{ lib, buildPythonPackage, fetchPypi, requests, dparse, click, setuptools, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "safety"; 5 version = "1.9.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "23bf20690d4400edc795836b0c983c2b4cbbb922233108ff925b7dd7750f00c9"; 10 }; 11 12 propagatedBuildInputs = [ requests dparse click setuptools ]; 13 14 # Disable tests depending on online services 15 checkInputs = [ pytestCheckHook ]; 16 dontUseSetuptoolsCheck = true; 17 disabledTests = [ 18 "test_check_live" 19 "test_check_live_cached" 20 ]; 21 22 preCheck = '' 23 export HOME=$(mktemp -d) 24 ''; 25 26 meta = with lib; { 27 description = 28 "Safety checks your installed dependencies for known security vulnerabilities"; 29 homepage = "https://github.com/pyupio/safety"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ thomasdesr ]; 32 }; 33}