1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, cryptography
6, pytestCheckHook
7, requests
8}:
9
10buildPythonPackage rec {
11 pname = "torpy";
12 version = "1.1.6";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "torpyorg";
18 repo = "torpy";
19 rev = "v${version}";
20 hash = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w=";
21 };
22
23 propagatedBuildInputs = [
24 cryptography
25 requests
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 disabledTestPaths = [
33 # requires network
34 "tests/integration"
35 ];
36
37 pythonImportsCheck = [
38 "cryptography"
39 ];
40
41 meta = with lib; {
42 description = "Pure python Tor client";
43 homepage = "https://github.com/torpyorg/torpy";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ larsr ];
46 };
47}