From 8fdb0dcd7e7b3676a07e6d58270d61013e8ccec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Aznar=C3=A1n?= Date: Tue, 13 Aug 2024 22:47:38 -0500 Subject: [PATCH] Add support for NumPy 2 --- .SRCINFO | 4 +++- PKGBUILD | 13 ++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index ea00fe75aa24..8a6bab2d1fca 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = python-copulas pkgdesc = Create tabular synthetic data using copulas-based modeling pkgver = 0.11.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/sdv-dev/Copulas arch = x86_64 license = BUSL-1.1 @@ -18,6 +18,8 @@ pkgbase = python-copulas optdepends = python-scikit-learn optdepends = jupyter-notebook source = Copulas-0.11.0.tar.gz::https://github.com/sdv-dev/Copulas/archive/v0.11.0.tar.gz + source = numpy2.patch::https://github.com/sdv-dev/Copulas/pull/414.patch sha512sums = 51ef4854df8948cd117cd41957ae829d72851ae3d9e9bbf982d04903d988c23cf292d5e1fd61128eb426b7a7daa36e689c821467d8a16d22fb8c5904d588688a + sha512sums = 41e96aace81be6a9688a8de385245a751a1c78eac3be0768e536ec13228ef44463c9bae2b7e9ec0d215174a006a6503836a02cf0c1d17b31a1017e69bf1a8dd1 pkgname = python-copulas diff --git a/PKGBUILD b/PKGBUILD index bf2f0ba7e81b..5a93b82880b3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ _base=Copulas pkgname=python-${_base,,} pkgver=0.11.0 -pkgrel=1 +pkgrel=2 pkgdesc="Create tabular synthetic data using copulas-based modeling" arch=(x86_64) url="https://github.com/sdv-dev/${_base}" @@ -11,8 +11,15 @@ depends=(python-pandas python-plotly python-scipy) makedepends=(python-build python-installer python-setuptools python-wheel) optdepends=('python-markupsafe' 'python-scikit-learn' 'jupyter-notebook') checkdepends=(python-pytest python-invoke) -source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) -sha512sums=('51ef4854df8948cd117cd41957ae829d72851ae3d9e9bbf982d04903d988c23cf292d5e1fd61128eb426b7a7daa36e689c821467d8a16d22fb8c5904d588688a') +source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz + numpy2.patch::${url}/pull/414.patch) +sha512sums=('51ef4854df8948cd117cd41957ae829d72851ae3d9e9bbf982d04903d988c23cf292d5e1fd61128eb426b7a7daa36e689c821467d8a16d22fb8c5904d588688a' + '41e96aace81be6a9688a8de385245a751a1c78eac3be0768e536ec13228ef44463c9bae2b7e9ec0d215174a006a6503836a02cf0c1d17b31a1017e69bf1a8dd1') + +prepare() { + cd ${_base}-${pkgver} + patch -p1 -i ../numpy2.patch +} build() { cd ${_base}-${pkgver}