python-pennylane

MEDIUM
maintainer Smoolak 0 votes scanned 2026-11-04 10:06:54.832549
View on AUR
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
3pkgname=python-${_pkgname}
4pkgver='0.39.0'
5pkgrel=1
6pkgdesc="Python library for quantum computing, quantum machine learning, and quantum chemistry."
7url="https://github.com/PennyLaneAI/pennylane"
8arch=(any)
9license=(Apache-2.0)
10depends=(
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)
24makedepends=(
25 python-build
26 python-installer
27 python-wheel
28)
29checkdepends=(
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)
41optdepends=(
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)
48source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
49sha256sums=('b1d5b6a5e541fe0bfe1014670213f9e7ec906c9ffdd41717bab449d54ff64bab')
50
51build() {
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
58check() {
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
65package() {
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)SeverityRules
2026-11-04 10:06:54 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion