summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/torpy/default.nix
blob: 57bdff800e936fde970b6544b5a9672e13934000 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  cryptography,
  pytestCheckHook,
  requests,
}:

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

  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 = {
    description = "Pure python Tor client";
    homepage = "https://github.com/torpyorg/torpy";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ larsr ];
  };
}