void-packages/srcpkgs/python-watchdog/template

29 lines
1001 B
Bash
Raw Normal View History

# Template file for 'python-watchdog'
pkgname=python-watchdog
version=0.8.3
revision=1
wrksrc="watchdog-${version}"
build_style=python-module
pycompile_module="watchdog"
alternatives="watchdog:watchmedo:/usr/bin/watchmedo2"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-yaml python-argh python-pathtools"
short_desc="Python2 API and shell utilities to monitor file system events"
maintainer="Maurizio Porrato <maurizio.porrato@gmail.com>"
homepage="http://github.com/gorakhargosh/watchdog"
license="Apache-2.0"
distfiles="${PYPI_SITE}/w/watchdog/watchdog-${version}.tar.gz"
checksum=7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162
python3-watchdog_package() {
pycompile_module="watchdog"
alternatives="watchdog:watchmedo:/usr/bin/watchmedo3"
depends="python3-yaml python3-argh python3-pathtools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vmove usr/bin/watchmedo3
}
}