From e66d5a0de3f94b2cfcf4633b5f4a119c898ce939 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 21 Jun 2018 10:42:16 -0300 Subject: [PATCH] New package: python-httmock-1.2.6. --- srcpkgs/python-httmock/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/python3-httmock | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/python-httmock/template create mode 120000 srcpkgs/python3-httmock diff --git a/srcpkgs/python-httmock/template b/srcpkgs/python-httmock/template new file mode 100644 index 00000000000..d1eaec60d50 --- /dev/null +++ b/srcpkgs/python-httmock/template @@ -0,0 +1,31 @@ +# Template file for 'python-httmock' +pkgname=python-httmock +version=1.2.6 +revision=1 +noarch=yes +wrksrc="httmock-${version}" +build_style=python-module +pycompile_module="httmock.py" +hostmakedepends="python3-setuptools python-setuptools" +depends="python-requests" +checkdepends="python3-requests" +short_desc="Mocking library for requests (Python2)" +maintainer="maxice8 " +license="Apache-2.0" +homepage="https://github.com/patrys/httmock" +distfiles="https://github.com/patrys/httmock/archive/${version}.tar.gz" +checksum=0a5646eff603c58f3cf2d619f5ec1c760cafe5c6049e28f8b8189ba23da4b31f + +do_check() { + python3 setup.py test +} + +python3-httmock_package() { + noarch=yes + pycompile_module="httmock.py" + depends="python3-requests" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-httmock b/srcpkgs/python3-httmock new file mode 120000 index 00000000000..cb20ded1289 --- /dev/null +++ b/srcpkgs/python3-httmock @@ -0,0 +1 @@ +python-httmock \ No newline at end of file