nixpkgs/pkgs/development/python-modules/safety/default.nix

34 lines
858 B
Nix
Raw Normal View History

2020-05-04 16:57:59 +01:00
{ lib, buildPythonPackage, fetchPypi, requests, dparse, click, setuptools, pytestCheckHook }:
buildPythonPackage rec {
pname = "safety";
2021-03-09 13:58:47 +00:00
version = "1.10.3";
2020-05-04 16:57:59 +01:00
src = fetchPypi {
inherit pname version;
2021-03-09 13:58:47 +00:00
sha256 = "sha256-MOOU0CogrEm39lKS0Z04+pJ6j5WCzf060a27xmxkGtU=";
2020-05-04 16:57:59 +01:00
};
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 ];
};
}