diff --git a/pipenv/patched/piptools/repositories/pypi.py b/pipenv/patched/piptools/repositories/pypi.py index 1db380a7..cfdc4aa7 100644 --- a/pipenv/patched/piptools/repositories/pypi.py +++ b/pipenv/patched/piptools/repositories/pypi.py @@ -167,7 +167,7 @@ class PyPIRepository(BaseRepository): all_candidates = [] for c in self.find_all_candidates(ireq.name): python_specifier = SpecifierSet(c.requires_python) - if not python_specifier.contains(py_version): + if c.requires_python and not python_specifier.contains(py_version): continue all_candidates.append(c) diff --git a/tasks/vendoring/patches/patched/piptools.patch b/tasks/vendoring/patches/patched/piptools.patch index 2d86c8be..1d219032 100644 --- a/tasks/vendoring/patches/patched/piptools.patch +++ b/tasks/vendoring/patches/patched/piptools.patch @@ -138,7 +138,7 @@ index 1c4b943..a15c23b 100644 + all_candidates = [] + for c in self.find_all_candidates(ireq.name): + python_specifier = SpecifierSet(c.requires_python) -+ if not python_specifier.contains(py_version): ++ if c.requires_python and not python_specifier.contains(py_version): + continue + all_candidates.append(c) +