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