summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b7e015654793492857099ddc80f0e3c91c3d800 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Rongbo Wu <wurongbo2012@hotmail.com>

_pkgname=comfy-cli
_pipname=${_pkgname//-/_}
pkgname="python-${_pkgname}"
pkgver=1.12.0
pkgrel=1
pkgdesc="Command Line Interface for Managing ComfyUI"
arch=('any')
url='https://github.com/Comfy-Org/comfy-cli'
license=('GPL-3.0-only')
depends=(python-httpx python-requests
	python-cookiecutter
	python-charset-normalizer
	python-gitpython
	python-mixpanel
	python-pathspec
	python-psutil
	python-pyyaml
	python-posthog
	python-rich
	python-semver
	python-questionary
	python-tomlkit
	python-typer
	python-websocket-client
)
makedepends=('python-build'
	'python-installer'
	'uv'
)
optdepends=('aria2: aria2 RPC download backend'
'git-lfs'
)
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pipname}-${pkgver}.tar.gz")
sha256sums=('SKIP')

prepare() {
    sed -i -e '/"typing-extensions/d' -e '/"ruff",/d' \
	${_pipname}-${pkgver}/pyproject.toml
}

build() {
    cd "${_pipname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pipname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}