blob: 7b5eebb54a4d4f5f9a9cc959bd70593b1271000b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
_upstreamver='1.5.53'
_upstreamver_regex='^[0-9]+\.[0-9]+\.[0-9]+$'
_source_type='pypi-releases'
_pypi_package='scalene'
pkgname="python-${_pypi_package}"
pkgver="${_upstreamver}"
pkgrel=1
pkgdesc="A high-resolution, low-overhead CPU, GPU, and memory profiler for Python with AI-powered optimization suggestions"
arch=('any')
url='https://github.com/plasma-umass/scalene'
license=('BSD-2-Clause')
depends=('glibc' 'gcc-libs' 'python' 'ipython' 'python-cloudpickle' 'python-jinja' 'python-pydantic' 'python-cysignals' 'python-rich' 'python-pynvml')
optdepends=()
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer')
source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${pkgver}.tar.gz")
sha256sums=('03270b2443edfb71a67610f24c96c2cd52db1da40e589f0f747972a893d95185')
build() {
cd "${srcdir}/${_pypi_package//-/_}-${pkgver}/"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_package//-/_}-${pkgver}/"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|