$OpenBSD: patch-setup_py,v 1.1.1.1 2017/07/23 00:46:36 bcallah Exp $

Use dependencies we already have in the ports tree.

Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -26,11 +26,11 @@ if version_info[0] == 2 or (version_info[0] == 3 and v
 deps.append("requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=2.16.4,!=2.16.5,!=2.17.1,<3.0")
 
 # for encrypted streams
-if environ.get("STREAMLINK_USE_PYCRYPTO"):
-    deps.append("pycrypto")
-else:
+if environ.get("STREAMLINK_USE_PYCRYPTODOME"):
     # this version of pycryptodome is known to work and has a Windows wheel for py2.7, py3.3-3.6
     deps.append("pycryptodome>=3.4.3,<4")
+else:
+    deps.append("pycrypto")
 
 # shutil.get_terminal_size and which were added in Python 3.3
 if version_info[0] == 2:
