Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / advocate / default.nix
blobe0062be35cb8716d0ca3239b67357909d18120b7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , ndg-httpsclient
5 , netifaces
6 , pyasn1
7 , pyopenssl
8 , requests
9 , six
10 , urllib3
13 buildPythonPackage rec {
14   pname = "advocate";
15   version = "1.0.0";
17   src = fetchFromGitHub {
18     owner = "JordanMilne";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-opObkjkad+yrLE2b7DULHjGuNeVhu4fEmSavgA39YPw=";
22   };
24   propagatedBuildInputs = [
25     ndg-httpsclient
26     netifaces
27     pyasn1
28     pyopenssl
29     requests
30     six
31     urllib3
32   ];
34   # The tests do network requests, so disabled
35   doCheck = false;
37   pythonImportsCheck = [ "advocate" ];
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   };