about summary refs log tree commit diff
path: root/pkgs/development/python-modules/torpy/default.nix
blob: cfaaef421926fa0fcba533109ce21be4fd829d98 (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
47
48
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, cryptography
, pytestCheckHook
, requests
}:

buildPythonPackage rec {
  pname = "torpy";
  version = "1.1.6";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "torpyorg";
    repo = "torpy";
    rev = "v${version}";
    hash = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w=";
  };

  propagatedBuildInputs = [
    cryptography
    requests
   ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    # requires network
    "tests/integration"
  ];

  pythonImportsCheck = [
    "cryptography"
  ];

  meta = with lib; {
    description = "Pure python Tor client";
    homepage = "https://github.com/torpyorg/torpy";
    license = licenses.asl20;
    maintainers = with maintainers; [ larsr ];
  };
}