2022-04-28 18:32:43 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ndg-httpsclient,
|
|
|
|
netifaces,
|
|
|
|
pyasn1,
|
|
|
|
pyopenssl,
|
|
|
|
requests,
|
|
|
|
six,
|
|
|
|
urllib3,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "advocate";
|
|
|
|
version = "1.0.0";
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
2022-04-28 18:32:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JordanMilne";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-opObkjkad+yrLE2b7DULHjGuNeVhu4fEmSavgA39YPw=";
|
2022-04-28 18:32:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ndg-httpsclient
|
|
|
|
netifaces
|
|
|
|
pyasn1
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
# The tests do network requests, so disabled
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "advocate" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/JordanMilne/Advocate";
|
|
|
|
description = "SSRF-preventing wrapper around Python's requests library";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pborzenkov ];
|
|
|
|
};
|
|
|
|
}
|