dev-python/pipenv: Fix import paths from pipdeptree

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34644
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Oz Tiram
2024-01-04 15:21:32 +01:00
committed by Michał Górny
parent d003c21598
commit 9e00c0c4ca
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
From b1e69d07afc4f94c6148f4ec65834e341a67b10d Mon Sep 17 00:00:00 2001
From: Oz Tiram <oz.tiram@gmail.com>
Date: Thu, 4 Jan 2024 14:59:33 +0100
Subject: [PATCH 1/2] Fix import path of PackageDAG
pipdeptree moved it in the recent versions.
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
---
pipenv/environment.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pipenv/environment.py b/pipenv/environment.py
index 26975ce0d..7e0206ade 100644
--- a/pipenv/environment.py
+++ b/pipenv/environment.py
@@ -678,7 +678,7 @@ class Environment:
def get_package_requirements(self, pkg=None):
from itertools import chain
- from pipdeptree import PackageDAG
+ from pipdeptree._models import PackageDAG
flatten = chain.from_iterable
--
2.41.0

View File

@@ -21,6 +21,7 @@ KEYWORDS="~amd64 ~riscv"
PATCHES=(
"${FILESDIR}/pipenv-2023.9.8-inject-system-packages.patch"
"${FILESDIR}/pipenv-2023.9.8-append-always-install-to-pip-extra-args.patch"
"${FILESDIR}/pipenv-2023.11.15-fix-import-path-PackageDAG.patch"
)
RDEPEND="