depot/third_party/nixpkgs/pkgs/development/python-modules/safety/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

33 lines
870 B
Nix

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