4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
DISTUTILS_USE_PEP517=setuptools
|
7 |
|
PYTHON_COMPAT=( python3_{8..11} )
|
|
7 |
PYTHON_COMPAT=( python3_{10..11} )
|
8 |
8 |
|
9 |
9 |
inherit distutils-r1 multiprocessing
|
10 |
10 |
|
... | ... | |
16 |
16 |
|
17 |
17 |
LICENSE="MIT"
|
18 |
18 |
SLOT="0"
|
19 |
|
KEYWORDS="~amd64 ~riscv ~x86"
|
|
19 |
KEYWORDS="~amd64"
|
20 |
20 |
|
21 |
21 |
PATCHES=(
|
22 |
22 |
"${FILESDIR}/pipenv-2022.9.24-inject-site-packages.patch"
|
... | ... | |
26 |
26 |
)
|
27 |
27 |
|
28 |
28 |
RDEPEND="
|
29 |
|
dev-python/attrs[${PYTHON_USEDEP}]
|
30 |
29 |
>=dev-python/cerberus-1.3.2[${PYTHON_USEDEP}]
|
31 |
30 |
dev-python/click[${PYTHON_USEDEP}]
|
|
31 |
dev-python/click-didyoumean[${PYTHON_USEDEP}]
|
32 |
32 |
>=dev-python/colorama-0.4.4[${PYTHON_USEDEP}]
|
33 |
33 |
>=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}]
|
34 |
34 |
>=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}]
|
... | ... | |
41 |
41 |
dev-python/virtualenv-clone[${PYTHON_USEDEP}]
|
42 |
42 |
>=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
|
43 |
43 |
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
|
44 |
dev-python/shellingham[${PYTHON_USEDEP}]
|
|
45 |
dev-python/tomli[${PYTHON_USEDEP}]
|
44 |
46 |
dev-python/tomlkit[${PYTHON_USEDEP}]
|
45 |
47 |
"
|
46 |
48 |
|
... | ... | |
63 |
65 |
src_prepare() {
|
64 |
66 |
local pkgName
|
65 |
67 |
local jobs=$(makeopts_jobs)
|
66 |
|
local packages=( attr attrs cerberus colorama dotenv markupsafe \
|
67 |
|
pexpect ptyprocess pyparsing requests urllib3 tomlkit )
|
|
68 |
local packages=( cerberus colorama click_didyoumean dotenv markupsafe \
|
|
69 |
pexpect ptyprocess pyparsing requests urllib3 \
|
|
70 |
shellingham tomli tomlkit )
|
68 |
71 |
for pkgName in ${packages[@]}; do
|
69 |
72 |
find ./ -type f -print0 | \
|
70 |
73 |
xargs --max-procs="${jobs}" --null \
|
... | ... | |
92 |
95 |
-e "s/from pipenv\.vendor import plette, toml, tomlkit, vistir/from pipenv\.vendor import plette, toml, vistir\\nimport tomlkit/g"
|
93 |
96 |
|
94 |
97 |
# remove python ruaml yaml
|
95 |
|
sed --in-place -e "s/from pipenv\.vendor\.ruamel\.yaml import YAML/from ruamel\.yaml import YAML/g" pipenv/patched/safety/util.py || die "Failed sed in ruaml-yaml"
|
96 |
|
sed --in-place -e "s/from pipenv\.vendor\.ruamel\.yaml\.error import MarkedYAMLError/from ruamel\.yaml\.error import MarkedYAMLError/g" pipenv/patched/safety/util.py || die "Failed sed in ruamel-yaml"
|
|
98 |
sed --in-place -e \
|
|
99 |
"s/from pipenv\.vendor\.ruamel\.yaml import YAML/from ruamel\.yaml import YAML/g" \
|
|
100 |
pipenv/patched/safety/util.py || die "Failed sed in ruaml-yaml"
|
|
101 |
sed --in-place -e \
|
|
102 |
"s/from pipenv\.vendor\.ruamel\.yaml\.error import MarkedYAMLError/from ruamel\.yaml\.error import MarkedYAMLError/g" \
|
|
103 |
pipenv/patched/safety/util.py || die "Failed sed in ruamel-yaml"
|
97 |
104 |
|
98 |
105 |
rm -vR pipenv/vendor/ruamel || die "Failed removing ruamel-yaml from vendor"
|
99 |
106 |
|