1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 12:40:30 +01:00

Deleted package: cargo-cache

Deleted package: python-plotly
This commit is contained in:
2024-08-26 18:43:51 +02:00
parent c42c863e23
commit 4226613e13
7 changed files with 0 additions and 4930 deletions

View File

@@ -1,14 +0,0 @@
pkgbase = cargo-cache
pkgdesc = Display info and prune cargo cache
pkgver = 0.8.3
pkgrel = 2
url = https://github.com/matthiaskrgr/cargo-cache
arch = x86_64
license = MIT
license = Apache-2.0
makedepends = cargo
depends = libgit2
source = cargo-cache-0.8.3.tar.gz::https://github.com/matthiaskrgr/cargo-cache/archive/0.8.3.tar.gz
sha256sums = d0f71214d17657a27e26aef6acf491bc9e760432a9bc15f2571338fcc24800e4
pkgname = cargo-cache

View File

@@ -1,35 +0,0 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
# Contributor: Jason Nader <jason d0t nader pr0t0nmail.c0m>
pkgname=cargo-cache
pkgver=0.8.3
pkgrel=2
pkgdesc="Display info and prune cargo cache"
arch=('x86_64')
url="https://github.com/matthiaskrgr/cargo-cache"
source=("$pkgname-$pkgver.tar.gz::https://github.com/matthiaskrgr/cargo-cache/archive/$pkgver.tar.gz")
license=('MIT' 'Apache-2.0')
depends=('cargo')
sha256sums=('d0f71214d17657a27e26aef6acf491bc9e760432a9bc15f2571338fcc24800e4')
depends=('libgit2')
makedepends=('cargo')
prepare() {
cd "$pkgname-$pkgver"
# Upstream tried to make libgit vendoring optional but it doesn't work. Manually implement it anyway.
sed -i "s|\[\"vendored-libgit2\"\]|\[\]|" Cargo.toml
sed -i "s|, \"vendored-libgit\"||" Cargo.toml
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/cargo-cache" "$pkgdir/usr/bin/cargo-cache"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-MIT
}

View File

@@ -1,40 +0,0 @@
pkgbase = python-plotly
pkgdesc = An open-source, interactive graphing library
pkgver = 5.23.0
pkgrel = 1
url = https://github.com/plotly/plotly.py
arch = any
license = MIT
checkdepends = python-requests
checkdepends = python-pytest
makedepends = git
makedepends = npm
makedepends = python-wheel
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-jupyter_core
makedepends = python-tornado
makedepends = jupyterlab
depends = python
depends = python-tenacity
optdepends = ipython
optdepends = jupyterlab
optdepends = python-ipywidgets
optdepends = python-numpy
optdepends = python-matplotlib
optdepends = python-pillow
optdepends = python-scipy
optdepends = python-ipykernel
optdepends = python-pandas
optdepends = python-colorcet
optdepends = python-inflect
optdepends = python-psutil
options = !strip
options = !debug
source = python-plotly::git+https://github.com/plotly/plotly.py#tag=v5.23.0
source = js-build.patch
sha256sums = fffdb97d8ba828be95b331c4adabaeb8a8b2bbdcc6fee7fc4848f3d7095342bb
sha256sums = 347d8de2ed5c6529a0113086780ecdd0b21c0a167fa60a890ca18bbac0d99392
pkgname = python-plotly

View File

@@ -1,5 +0,0 @@
src/
pkg/
*.tar.gz
*.tar.xz
*.tar.zst

View File

@@ -1,5 +0,0 @@
[python-plotly]
source = "github"
github = "plotly/plotly.py"
prefix = "v"
use_latest_release = true

View File

@@ -1,84 +0,0 @@
# Maintainer: Grey Christoforo <first name at last name dot net>
# Co-Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=python-plotly
pkgver=5.23.0
pkgrel=1
pkgdesc="An open-source, interactive graphing library"
arch=('any')
url="https://github.com/plotly/plotly.py"
license=('MIT')
depends=(
python
python-tenacity
)
# optdepends based on optional_requirements.txt
optdepends=(
ipython
jupyterlab
python-ipywidgets
python-numpy
python-matplotlib
python-pillow
python-scipy
python-ipykernel
python-pandas
python-colorcet
python-inflect
python-psutil
)
makedepends=(
git
npm
python-wheel
python-build
python-installer
python-setuptools
python-jupyter_core
python-tornado
jupyterlab
)
checkdepends=(
python-requests
python-pytest
)
source=(
"${pkgname}::git+https://github.com/plotly/plotly.py#tag=v$pkgver"
"js-build.patch"
)
sha256sums=('fffdb97d8ba828be95b331c4adabaeb8a8b2bbdcc6fee7fc4848f3d7095342bb'
'347d8de2ed5c6529a0113086780ecdd0b21c0a167fa60a890ca18bbac0d99392')
options=(!strip !debug) # strip and debug aren't useful for python files and take forever
prepare() {
cd python-plotly
git clean -dfx
patch -p1 < ../js-build.patch
}
build() {
cd python-plotly/packages/python/plotly
# Skip the dependency check as the version bounds on jupyterlab are too tight
# and don't allow 4.x, which Arch currently ships.
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd python-plotly/packages/python/plotly
pytest plotly/tests/test_core
}
package() {
cd python-plotly/packages/python/plotly
python -m installer --destdir="$pkgdir"/ dist/*.whl
mv "${pkgdir}/usr/etc" "${pkgdir}"
# symlink the path where static assets are installed, otherwise jupyterlab
# will not be able to load the extension properly
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
ln -s "$site_packages/jupyterlab_plotly/labextension/static" "$pkgdir/usr/share/jupyter/labextensions/jupyterlab-plotly/"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

File diff suppressed because it is too large Load Diff