diff options
author | Oz Tiram <oz.tiram@gmail.com> | 2024-01-04 15:21:32 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-06 15:02:19 +0100 |
commit | 9e00c0c4caaaab999c2ab4cd8262bca7db9d2b01 (patch) | |
tree | 25a426b86459e772ff685d913a999173a6fe1999 /dev-python | |
parent | dev-python/pipenv: clean docs (diff) | |
download | gentoo-9e00c0c4caaaab999c2ab4cd8262bca7db9d2b01.tar.gz gentoo-9e00c0c4caaaab999c2ab4cd8262bca7db9d2b01.tar.bz2 gentoo-9e00c0c4caaaab999c2ab4cd8262bca7db9d2b01.zip |
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>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pipenv/files/pipenv-2023.11.15-fix-import-path-PackageDAG.patch | 28 | ||||
-rw-r--r-- | dev-python/pipenv/pipenv-2023.11.15.ebuild | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/pipenv/files/pipenv-2023.11.15-fix-import-path-PackageDAG.patch b/dev-python/pipenv/files/pipenv-2023.11.15-fix-import-path-PackageDAG.patch new file mode 100644 index 000000000000..25035da66115 --- /dev/null +++ b/dev-python/pipenv/files/pipenv-2023.11.15-fix-import-path-PackageDAG.patch @@ -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 + diff --git a/dev-python/pipenv/pipenv-2023.11.15.ebuild b/dev-python/pipenv/pipenv-2023.11.15.ebuild index 5c845f96c9f0..8201894fcfd6 100644 --- a/dev-python/pipenv/pipenv-2023.11.15.ebuild +++ b/dev-python/pipenv/pipenv-2023.11.15.ebuild @@ -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=" |