Revision: 132576 https://trac.macports.org/changeset/132576 Author: petr@macports.org Date: 2015-02-04 19:19:55 -0800 (Wed, 04 Feb 2015) Log Message: ----------- py-oauthlib: new port Added Paths: ----------- trunk/dports/python/py-oauthlib/ trunk/dports/python/py-oauthlib/Portfile Added: trunk/dports/python/py-oauthlib/Portfile =================================================================== --- trunk/dports/python/py-oauthlib/Portfile (rev 0) +++ trunk/dports/python/py-oauthlib/Portfile 2015-02-05 03:19:55 UTC (rev 132576) @@ -0,0 +1,53 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup python 1.0 + +set _name oauthlib +set _n [string index ${_name} 0] + +name py-${_name} +version 0.7.2 +categories-append net security +platforms darwin +supported_archs noarch +license BSD +maintainers petr openmaintainer + +description A generic, spec-compliant, thorough implementation of the \ + OAuth request-signing logic. +long_description ${description} + +homepage https://pypi.python.org/pypi/${_name}/${version} +master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ +distname ${_name}-${version} + +checksums md5 eb60abdb002b9c08d248707b79a1cc92 \ + rmd160 f30010118a29007e0a5495c8b605557a6e10f293 \ + sha256 a051f04ee8ec3305055ab34d87b36c9a449375e07c7d6a05bcafa48329cac7c3 + +python.versions 27 34 + +if {${name} ne ${subport}} { + depends_build-append port:py${python.version}-setuptools + + depends_lib-append port:py${python.version}-blinker \ + port:py${python.version}-crypto \ + port:py${python.version}-jwt \ + port:py${python.version}-nose + + if { ${python.version} < 30 } { + depends_lib-append port:py${python.version}-unittest2 \ + port:py${python.version}-mock + } + + # note: 5 tests fail + test.run yes + + livecheck.type none +} else { + livecheck.type regex + livecheck.url https://pypi.python.org/pypi/${_name}/json + livecheck.regex "\"${_name}-(\[.\\d\]+)\\.tar\\.gz\"" +} Property changes on: trunk/dports/python/py-oauthlib/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native
participants (1)
-
petr@macports.org