[arch-commits] Commit in python-moto/repos (3 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sun Nov 18 08:27:20 UTC 2018
Date: Sunday, November 18, 2018 @ 08:27:20
Author: yan12125
Revision: 408661
archrelease: copy trunk to community-any
Added:
python-moto/repos/community-any/
python-moto/repos/community-any/PKGBUILD
(from rev 408660, python-moto/trunk/PKGBUILD)
python-moto/repos/community-any/remove-dep-upper-bounds.patch
(from rev 408660, python-moto/trunk/remove-dep-upper-bounds.patch)
-------------------------------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++
remove-dep-upper-bounds.patch | 19 +++++++++++++++
2 files changed, 69 insertions(+)
Copied: python-moto/repos/community-any/PKGBUILD (from rev 408660, python-moto/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-11-18 08:27:20 UTC (rev 408661)
@@ -0,0 +1,50 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-moto
+_pkgname=moto
+pkgver=1.3.7
+pkgrel=2
+pkgdesc='Moto is a library to mock out the boto library.'
+arch=(any)
+url='https://github.com/spulec/moto'
+license=(Apache)
+depends=(python-aws-xray-sdk python-boto python-boto3
+ python-cryptography python-dateutil python-docker python-jinja
+ python-jsondiff python-jose python-mock python-pyaml
+ python-pytz python-requests python-responses python-xmltodict
+ python-werkzeug)
+checkdepends=(python-flask python-freezegun python-nose python-sure tk)
+makedepends=(python-setuptools)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/spulec/moto/archive/$pkgver.tar.gz"
+ remove-dep-upper-bounds.patch)
+sha256sums=('5431738fef3bc3b589e37123df496b63d3c1348a49f3632d1c05da566b839cbe'
+ 'f7c965571483b5b77419b0448ec98675bf4ec2b657c95dc7320d1eb1f2b81fb9')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ patch -Np1 -i ../remove-dep-upper-bounds.patch
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ # https://github.com/spulec/moto/issues/1924
+ export AWS_SECRET_ACCESS_KEY=foobar_secret
+ export AWS_ACCESS_KEY_ID=foobar_key
+
+ TZ=UTC nosetests -sv ./tests/ --exclude='test_iot.*' --exclude='test_lambda.*'
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
Copied: python-moto/repos/community-any/remove-dep-upper-bounds.patch (from rev 408660, python-moto/trunk/remove-dep-upper-bounds.patch)
===================================================================
--- community-any/remove-dep-upper-bounds.patch (rev 0)
+++ community-any/remove-dep-upper-bounds.patch 2018-11-18 08:27:20 UTC (rev 408661)
@@ -0,0 +1,19 @@
+--- moto-1.3.4/setup.py.orig 2018-08-09 12:30:08.975654988 +0800
++++ moto-1.3.4/setup.py 2018-08-09 12:31:18.255654986 +0800
+@@ -18,12 +18,12 @@
+ "werkzeug",
+ "pyaml",
+ "pytz",
+- "python-dateutil<3.0.0,>=2.1",
+- "python-jose<3.0.0",
++ "python-dateutil>=2.1",
++ "python-jose",
+ "mock",
+ "docker>=2.5.1",
+- "jsondiff==1.1.1",
+- "aws-xray-sdk<0.96,>=0.93",
++ "jsondiff>=1.1.1",
++ "aws-xray-sdk>=0.93",
+ "responses>=0.9.0",
+ ]
+
More information about the arch-commits
mailing list