Date: Tuesday, January 3, 2023 @ 01:58:04
Author: kgizdov
Revision: 1374259
upgpkg: python-iminuit 2.18.0-1
Added:
python-iminuit/trunk/ipython-fix.patch
Modified:
python-iminuit/trunk/PKGBUILD
-------------------+
PKGBUILD | 13 ++++++++-----
ipython-fix.patch | 11 +++++++++++
2 files changed, 19 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-03 01:57:21 UTC (rev 1374258)
+++ PKGBUILD 2023-01-03 01:58:04 UTC (rev 1374259)
@@ -3,7 +3,7 @@
_pkgname=iminuit
pkgbase="python-${_pkgname}"
pkgname=("python-${_pkgname}" "python-${_pkgname}-docs")
-pkgver=2.16.0
+pkgver=2.18.0
pkgrel=1
pkgdesc="Python interface for MINUIT, a physics analysis tool for function
minimization."
arch=('x86_64')
@@ -10,7 +10,7 @@
url="https://iminuit.readthedocs.io"
license=('GPL' 'MIT')
depends=('python-numpy')
-makedepends=('git' 'cmake' 'python-setuptools' 'python-wheel' 'python-build'
'python-installer' 'python-joblib'
+makedepends=('git' 'cmake' 'python-setuptools' 'python-wheel' 'python-build'
'python-installer' 'python-joblib' 'python-ipykernel'
'python-boost-histogram' 'python-nbsphinx'
'python-sphinx_rtd_theme' 'python-matplotlib' 'python-pillow' 'pandoc'
'python-ipywidgets')
checkdepends=('python-pytest' 'python-scipy' 'python-tabulate')
options=(!emptydirs)
@@ -18,10 +18,12 @@
"${pkgbase}::git+https://github.com/scikit-hep/iminuit#tag=v${pkgver}"
"${pkgbase}-pybind11::git+https://github.com/pybind/pybind11.git"
"${pkgbase}-root::git+https://github.com/root-project/root.git"
+ 'ipython-fix.patch'
)
sha256sums=('SKIP'
'SKIP'
- 'SKIP')
+ 'SKIP'
+ '3b7e5a505d580403aa98192cbcccfc14b9f243572c836f4af77a70373bfc9a22')
get_pyver () {
python -c 'import sys; print(str(sys.version_info[0]) + "." +
str(sys.version_info[1]))'
@@ -39,11 +41,12 @@
git config submodule."extern/pybind11".url "${srcdir}/${pkgname}"-pybind11
# root submodule reference is broken, fix it
- git submodule update --init --recursive extern/pybind11
- git submodule update --recursive --remote --merge extern/root
+ git -c protocol.file.allow=always submodule update --init --recursive
# python-cmake is not needed
sed -i '/cmake/d' pyproject.toml
+
+ patch -Np1 -i "${srcdir}/ipython-fix.patch"
}
build() {
Added: ipython-fix.patch
===================================================================
--- ipython-fix.patch (rev 0)
+++ ipython-fix.patch 2023-01-03 01:58:04 UTC (rev 1374259)
@@ -0,0 +1,11 @@
+diff --color -aur python-iminuit-old/doc/conf.py python-iminuit-new/doc/conf.py
+--- python-iminuit-old/doc/conf.py 2023-01-03 03:50:48.084727362 +0200
++++ python-iminuit-new/doc/conf.py 2023-01-03 03:51:14.684726701 +0200
+@@ -33,6 +33,7 @@
+ # 'matplotlib.sphinxext.only_directives',
+ "matplotlib.sphinxext.plot_directive",
+ "nbsphinx",
++ "IPython.sphinxext.ipython_console_highlighting",
+ ]
+
+ nbsphinx_kernel_name = "python3"