mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sci-mathematics/cryptominisat: replace tomli dep with tomllib built-in
Closes: https://bugs.gentoo.org/955200 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -38,9 +38,6 @@ RDEPEND="
|
||||
sys-libs/zlib:=
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
@@ -53,7 +50,7 @@ BDEPEND="
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-5.11.21-setup-py.patch"
|
||||
"${FILESDIR}/${PN}-5.11.21-setup-py-r1.patch"
|
||||
"${FILESDIR}/${PN}-5.11.21-unistd.patch"
|
||||
)
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
from setuptools import Extension, setup
|
||||
import sysconfig
|
||||
-import toml
|
||||
+import tomli
|
||||
+import tomllib
|
||||
import pathlib
|
||||
from sys import platform
|
||||
|
||||
def _parse_toml(pyproject_path):
|
||||
pyproject_text = pyproject_path.read_text()
|
||||
- pyproject_data = toml.loads(pyproject_text)
|
||||
+ pyproject_data = tomli.loads(pyproject_text)
|
||||
+ pyproject_data = tomllib.loads(pyproject_text)
|
||||
return pyproject_data['project']['version']
|
||||
|
||||
picosatlib = ('picosatlib', {
|
||||
Reference in New Issue
Block a user