about summary refs log tree commit diff
path: root/pkgs/development/python-modules/torrequest/default.nix
blob: 18fc52c24aa664f11559278814642a2708c999e2 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  requests,
  pysocks,
  stem,
}:

buildPythonPackage rec {
  pname = "torrequest";
  version = "0.1.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-N0XU6j/9qY16A0Njx4ets3qrd72rQAlKTZNzks1NroI=";
  };

  propagatedBuildInputs = [
    pysocks
    requests
    stem
  ];

  # This package does not contain any tests.
  doCheck = false;

  pythonImportsCheck = [ "torrequest" ];

  meta = with lib; {
    homepage = "https://github.com/erdiaker/torrequest";
    description = "Simple Python interface for HTTP(s) requests over Tor";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ applePrincess ];
  };
}