My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/safety/default.nix

33 lines
858 B

{ lib, buildPythonPackage, fetchPypi, requests, dparse, click, setuptools, pytestCheckHook }:
buildPythonPackage rec {
pname = "safety";
version = "1.10.3";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MOOU0CogrEm39lKS0Z04+pJ6j5WCzf060a27xmxkGtU=";
};
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 ];
};
}