 +
 +
  class PyPIRepository(BaseRepository):
--    DEFAULT_INDEX_URL = 'https://pypi.python.org/simple'
-+    DEFAULT_INDEX_URL = 'https://pypi.org/simple'
- 
-@@ -30,8 +69,9 @@ class PyPIRepository(BaseRepository):
+     DEFAULT_INDEX_URL = PyPI.simple_url
+ 
+@@ -46,8 +86,9 @@ class PyPIRepository(BaseRepository):
      config), but any other PyPI mirror can be used if index_urls is
      changed/configured on the Finder.
      """

     @contextmanager
     def allow_all_wheels(self):
         """
@@ -217,7 +351,7 @@ def open_local_or_remote_file(link, session):
     """
     Open local or remote file for reading.
 
-    :type link: pip.index.Link
+    :type link: pip9.index.Link
     :type session: requests.Session
     :raises ValueError: If link points to a local directory.
     :return: a context manager to the opened file-like object
diff --git a/pipenv/patched/piptools/resolver.py b/pipenv/patched/piptools/resolver.py
index 8c4e981..862be14 100644
--- a/pipenv/patched/piptools/resolver.py

+    def get_json_dependencies(self, ireq):
+
+        if not (is_pinned_requirement(ireq)):
+            raise TypeError('Expected pinned InstallRequirement, got {}.format(ireq))
+
+        def gen(ireq):
+            if self.DEFAULT_INDEX_URL in self.finder.index_urls:
