blob: 6caf1fff64c435d40f7b5f6fe1cea9042d3aa413 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
ndg-httpsclient,
netifaces,
pyasn1,
pyopenssl,
requests,
six,
urllib3,
}:
buildPythonPackage rec {
pname = "advocate";
version = "1.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "JordanMilne";
repo = "advocate";
rev = "v${version}";
hash = "sha256-opObkjkad+yrLE2b7DULHjGuNeVhu4fEmSavgA39YPw=";
};
propagatedBuildInputs = [
ndg-httpsclient
netifaces
pyasn1
pyopenssl
requests
six
urllib3
];
# The tests do network requests, so disabled
doCheck = false;
pythonImportsCheck = [ "advocate" ];
meta = {
homepage = "https://github.com/JordanMilne/Advocate";
description = "SSRF-preventing wrapper around Python's requests library";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ pborzenkov ];
};
}
|