1{ lib, buildPythonPackage, fetchPypi, requests, dparse, click, setuptools, pytestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "safety";
5 version = "1.10.3";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "sha256-MOOU0CogrEm39lKS0Z04+pJ6j5WCzf060a27xmxkGtU=";
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}