1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, ndg-httpsclient
5, netifaces
6, pyasn1
7, pyopenssl
8, requests
9, six
10, urllib3
11}:
12
13buildPythonPackage rec {
14 pname = "advocate";
15 version = "1.0.0";
16
17 src = fetchFromGitHub {
18 owner = "JordanMilne";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-opObkjkad+yrLE2b7DULHjGuNeVhu4fEmSavgA39YPw=";
22 };
23
24 propagatedBuildInputs = [
25 ndg-httpsclient
26 netifaces
27 pyasn1
28 pyopenssl
29 requests
30 six
31 urllib3
32 ];
33
34 # The tests do network requests, so disabled
35 doCheck = false;
36
37 pythonImportsCheck = [ "advocate" ];
38
39 meta = with lib; {
40 homepage = "https://github.com/JordanMilne/Advocate";
41 description = "An SSRF-preventing wrapper around Python's requests library";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ pborzenkov ];
44 };
45}