diff --git a/srcpkgs/python-mock/template b/srcpkgs/python-mock/template index bea4074e508..0d598fd1c6c 100644 --- a/srcpkgs/python-mock/template +++ b/srcpkgs/python-mock/template @@ -1,22 +1,20 @@ # Template file for 'python-mock' pkgname=python-mock version=2.0.0 -revision=1 -_distname=mock -wrksrc="${_distname}-${version}" -build_style=python-module -pycompile_module="${_distname}" -python_versions="2.7" -pycompile_version="2.7" +revision=2 noarch=yes -hostmakedepends="python-setuptools" -short_desc="Python2 rolling backport of unittest.mock" +wrksrc="${pkgname#*-}-${version}" +build_style=python-module +pycompile_module="mock" +hostmakedepends="python-setuptools python-pbr" +depends="python-six python-pbr python-funcsigs" +short_desc="Rolling backport of unittest.mock for Python2" maintainer="Toyam Cox " -license="BSD" homepage="https://github.com/testing-cabal/mock" -distfiles="${PYPI_SITE}/$(printf %.1s $_distname)/${_distname}/${_distname}-${version}.tar.gz" +license="2-clause-BSD" +distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz" checksum=b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba post_install() { - vlicense LICENSE.txt + vlicense LICENSE.txt LICENSE }