blob: 06158307de598a22d67af6915c65a9ea6a3ced62 (
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
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_pkgname=split-folders
pkgname=python-${_pkgname}
pkgver=0.5.1
pkgrel=1
pkgdesc='A Python library to split folders with files (i.e. images) into training, validation and test (dataset) folders.'
arch=(x86_64)
url='https://github.com/jfilter/split-folders'
license=(MIT)
depends=('python' 'python-tqdm')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-poetry')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/${pkgver}.tar.gz)
b2sums=('3126144fb80701028266a80ad9a27eda0939a257527186643bd6bcd582fd1dc47f35ab4fba35ba82b0688ea51c41b608f04040685a1c13af913497942957420f')
build() {
cd "${_pkgname}-${pkgver}"
## skip dependency check because of pinned deps
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|