blob: 60c23e3c6a2b932fd65bff3708c7171fe9131b9e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
, click
, requests
, packaging
, dparse
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "safety";
version = "1.10.3";
disabled = pythonOlder "3.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MOOU0CogrEm39lKS0Z04+pJ6j5WCzf060a27xmxkGtU=";
};
propagatedBuildInputs = [
setuptools
click
requests
packaging
dparse
];
checkInputs = [
pytestCheckHook
];
# Disable tests depending on online services
disabledTests = [
"test_check_live"
"test_check_live_cached"
];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Checks installed dependencies for known vulnerabilities";
homepage = "https://github.com/pyupio/safety";
license = licenses.mit;
maintainers = with maintainers; [ thomasdesr dotlambda ];
};
}
|