about summary refs log tree commit diff
path: root/pkgs/development/python-modules/advocate/default.nix
blob: 532302b799c6cfa76dec14c77e94a0b191c1e1fb (plain) (blame)
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
{ 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 = pname;
    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 = with lib; {
    homepage = "https://github.com/JordanMilne/Advocate";
    description = "An SSRF-preventing wrapper around Python's requests library";
    license = licenses.asl20;
    maintainers = with maintainers; [ pborzenkov ];
  };
}