diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-05-08 18:19:25 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-05-08 18:19:25 +0000 |
commit | 8f6a16eb2210c4298a15ffe74cba78b3b49f1d50 (patch) | |
tree | fe68b26e93f6f478518413e768293d40f4db72c3 /dev-python/flask-restful | |
parent | Initial import. (diff) | |
download | gentoo-2-8f6a16eb2210c4298a15ffe74cba78b3b49f1d50.tar.gz gentoo-2-8f6a16eb2210c4298a15ffe74cba78b3b49f1d50.tar.bz2 gentoo-2-8f6a16eb2210c4298a15ffe74cba78b3b49f1d50.zip |
Initial import.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-python/flask-restful')
-rw-r--r-- | dev-python/flask-restful/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/flask-restful/Manifest | 5 | ||||
-rw-r--r-- | dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch | 21 | ||||
-rw-r--r-- | dev-python/flask-restful/flask-restful-0.2.12.ebuild | 52 | ||||
-rw-r--r-- | dev-python/flask-restful/metadata.xml | 11 |
5 files changed, 99 insertions, 0 deletions
diff --git a/dev-python/flask-restful/ChangeLog b/dev-python/flask-restful/ChangeLog new file mode 100644 index 000000000000..99401589960b --- /dev/null +++ b/dev-python/flask-restful/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/flask-restful +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-restful/ChangeLog,v 1.1 2014/05/08 18:19:24 radhermit Exp $ + +*flask-restful-0.2.12 (08 May 2014) + + 08 May 2014; Tim Harder <radhermit@gentoo.org> +flask-restful-0.2.12.ebuild, + +files/flask-restful-0.2.12-tests.patch, +metadata.xml: + Initial import. + diff --git a/dev-python/flask-restful/Manifest b/dev-python/flask-restful/Manifest new file mode 100644 index 000000000000..c05fc5baa8f7 --- /dev/null +++ b/dev-python/flask-restful/Manifest @@ -0,0 +1,5 @@ +AUX flask-restful-0.2.12-tests.patch 669 SHA256 3c81297f7e68cea5f487e37c7c03b505f1c567892e862d7dc50e108b1bb6c555 SHA512 6273e78bfd87ae5cf3a1294af3c754c0f4a7e025bc7d2893c94b4f3f13f9ff976ae0a4c850c7a4a595b679adcc7f36bcde14a9ae128d170aa2370ced407e7993 WHIRLPOOL 51f1925a56326a8d528255e900a6b334d27894585c4daaf66d990e58336a3c4d5e48d6e8c0654bdb2b2b9215b99428bcd86d62c5ea943e94233898a803ad8c36 +DIST flask-restful-0.2.12.tar.gz 96159 SHA256 fb44cff325a7f9581007c1f01c6d6f78a8d97ea95a7455b894e0004847213c04 SHA512 4a270431b07c0f3d11fc1a618ba58675b8c869af448894a8067ca297454584decdfe97a0a686f9398599d4888f4f57545d4514d90ee655169ab2b35c8acb1de4 WHIRLPOOL e9d6d9f6d43e912b45a8b4f0f93b3e329922b449d98fd4a2afe09bd14ea78547fbb62f6a9268bce41640b9da1d409bf9500ecfc971a4409401493f6b2e1d0f19 +EBUILD flask-restful-0.2.12.ebuild 1297 SHA256 4c33a78e8c703cb1bef64042c0844f400df98ef47777750e89c87449f0251bd4 SHA512 2c5a8c688c9196dff7ca2c4d76a430937e26ed858299d4006e1bab2d7d4f3293d9aa204377038d6f371469ba073cab57dfdb9e6fbf0877f7a72778987c48ce09 WHIRLPOOL 661da48784396bd14ae40b69f93f14172daec5609c792e7f282d0b4736513faa113e94d0be589da71ab72d3cb7a7462f4c129174806c894d12a881fbccd3e23c +MISC ChangeLog 318 SHA256 c44f165be434b31e2aef30495dc7bd6aa394d8087ee0aa4dc25b6eeb8d45e981 SHA512 58479eaa3545a4e9173b72fc261d6c5b771cb9835194e60ac00512542508b8cef92337edca54d8c8c913cb02c37215cecbd83d3997f8005032a3b77b1b48c231 WHIRLPOOL 5a942bdf0d00b12a5afdc73f01b666b7044a5b32ea3542057ba395961e1edc0c4b20042ef00171a5d8e95f3fe1cbc6cab5a244aa008b3b648f2ab134dec68e17 +MISC metadata.xml 320 SHA256 8485859b54eb1de331f9df54c4efc2aef91a07cd91d336f671f9d0c9be759247 SHA512 471674b2f853193698a05e0cd04f9a04211708c0daa878a1fd2da304c13dc6fccf423995dadfa8379296ac1d69dbc8d7d876e8d2a303a4caac18ea5bdd70a9b8 WHIRLPOOL 2c3090a93dcea2f09d162b45e070d4de7bfc95c1caed367fe15a9e260db7c4651d9fe172e5483c8237618066988058e1a2bb6e38b5b0bc94c6ab02b82cf6e9c0 diff --git a/dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch b/dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch new file mode 100644 index 000000000000..9ddd44a1f6a9 --- /dev/null +++ b/dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch @@ -0,0 +1,21 @@ +--- flask-restful-0.2.12/tests/test_fields.py ++++ flask-restful-0.2.12/tests/test_fields.py +@@ -2,13 +2,17 @@ + import unittest + from mock import Mock + from flask.ext.restful.fields import MarshallingException +-from flask.ext.restful.utils.ordereddict import OrderedDict + from flask_restful import fields + from datetime import datetime + from flask import Flask + #noinspection PyUnresolvedReferences + from nose.tools import assert_equals # you need it for tests in form of continuations + ++try: ++ from collections import OrderedDict ++except ImportError: ++ from flask.ext.restful.utils.ordereddict import OrderedDict ++ + + class Foo(object): + def __init__(self): diff --git a/dev-python/flask-restful/flask-restful-0.2.12.ebuild b/dev-python/flask-restful/flask-restful-0.2.12.ebuild new file mode 100644 index 000000000000..8762de37f645 --- /dev/null +++ b/dev-python/flask-restful/flask-restful-0.2.12.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-restful/flask-restful-0.2.12.ebuild,v 1.1 2014/05/08 18:19:24 radhermit Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit distutils-r1 + +DESCRIPTION="Simple framework for creating REST APIs" +HOMEPAGE="http://flask-restful.readthedocs.org/ https://github.com/twilio/flask-restful/" +SRC_URI="https://github.com/twilio/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples paging test" + +RDEPEND=" + >=dev-python/aniso8601-0.82[${PYTHON_USEDEP}] + >=dev-python/flask-0.8[${PYTHON_USEDEP}] + >=dev-python/six-1.3.0[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + paging? ( >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] ) +" +DEPEND="${RDEPEND} + dev-python/sphinx[${PYTHON_USEDEP}] + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}"/${P}-tests.patch ) + +python_test() { + nosetests -v || die "Tests fail with ${EPYTHON}" +} + +python_compile_all() { + cd docs || die + emake man $(usex doc html "") +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + use examples && local EXAMPLES=( examples/. ) + local DOCS=( AUTHORS.md CHANGES.md CONTRIBUTING.md README.md ) + + doman docs/_build/man/* + distutils-r1_python_install_all +} diff --git a/dev-python/flask-restful/metadata.xml b/dev-python/flask-restful/metadata.xml new file mode 100644 index 000000000000..48555571de7b --- /dev/null +++ b/dev-python/flask-restful/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="github">twilio/flask-restful</remote-id> + </upstream> + <use> + <flag name="paging">Enable resource paging support</flag> + </use> +</pkgmetadata> |