python-pennylane
MEDIUM
maintainer Smoolak
0 votes
scanned 2026-11-04 10:06:54.832549
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Skylar Chan <schance995 at proton dot me>
2
_pkgname=pennylane
3
pkgname=python-${_pkgname}
4
pkgver='0.39.0'
5
pkgrel=1
6
pkgdesc="Python library for quantum computing, quantum machine learning, and quantum chemistry."
7
url="https://github.com/PennyLaneAI/pennylane"
8
arch=(any)
9
license=(Apache-2.0)
10
depends=(
11
python-numpy
12
python-scipy
13
python-networkx
14
python-rustworkx
15
python-autograd
16
python-toml
17
python-appdirs
18
python-autoray
19
python-cachetools
20
python-requests
21
python-typing_extensions
22
python-packaging
23
)
24
makedepends=(
25
python-build
26
python-installer
27
python-wheel
28
)
29
checkdepends=(
30
python-pytest
31
python-pytest-benchmark
32
python-pytest-cov
33
python-pytest-mock
34
python-pytest-xdist
35
python-pytest-split
36
python-flaky
37
python-tensorflow
38
# python-pytorch
39
# python-jax
40
)
41
optdepends=(
42
'python-tensorflow: tensorflow backend'
43
'python-pytorch: pytorch backend'
44
'python-jax: jax backend'
45
# 'python-pennylane-lightning-qubit: lightning.qubit device'
46
# 'python-quimb: default.tensor device'
47
)
48
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
49
sha256sums=('b1d5b6a5e541fe0bfe1014670213f9e7ec906c9ffdd41717bab449d54ff64bab')
50
51
build() {
52
cd "${_pkgname}-${pkgver}"
53
python -m build --wheel --no-isolation
54
}
55
56
# The full test suite require several extra dependencies
57
# Instead test the standard devices available
58
check() {
59
cd "${_pkgname}-${pkgver}"
60
# pytest -v tests -rxXs
61
pl-device-test --device default.qubit
62
pl-device-test --device default.mixed
63
}
64
65
package() {
66
cd "${_pkgname}-${pkgver}"
67
python -m installer --destdir="${pkgdir}" dist/*.whl
68
install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
69
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
70
}
71
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-04 10:06:54 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |