From eb1d0760fa091431ccfb8dc3ebcce3279a8d375e Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Mon, 11 Nov 2019 12:16:46 -0600 Subject: [PATCH] black: update 19.10b0 --- srcpkgs/black/template | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/srcpkgs/black/template b/srcpkgs/black/template index f6d433038b9..e6751291c31 100644 --- a/srcpkgs/black/template +++ b/srcpkgs/black/template @@ -1,19 +1,26 @@ # Template file for 'black' pkgname=black -version=19.3b0 +version=19.10b0 revision=1 archs=noarch build_style=python3-module -pycompile_module="black.py blib2to3" -hostmakedepends="python3-setuptools" +pycompile_module="black.py blib2to3 _black_version.py" +hostmakedepends="git python3-setuptools" depends="python3-appdirs python3-attrs python3-click - python3-setuptools python3-toml" + python3-pathspec python3-toml python3-regex python3-typed-ast" short_desc="Uncompromising Python code formatter" maintainer="Orphaned " license="MIT" -homepage="https://github.com/ambv/black" -distfiles="https://github.com/ambv/black/archive/${version}.tar.gz" -checksum=a888a7061534ec8061edb868ccfaf12a4d16bf1e3380a7376d5b3f428c0c97bf +homepage="https://github.com/psf/black" +distfiles="https://github.com/psf/black/archive/${version}.tar.gz" +checksum=b9cee80c9682be0cddfe7eff1934ed12948b33768c876868ef6bc40d2f2c3bfb + +pre_build() { +# Black requires a .git directory +# or build fails + cd "$wrksrc" + git init +} post_install() { vlicense LICENSE