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