From f33401dbca698b90b3e567f8fbb7a6a1a12b6173 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Mon, 5 Mar 2018 13:29:08 +0100 Subject: pcr/papis: added, plus dependencies --- pcr/arxiv2bib/PKGBUILD | 17 ++++++++ pcr/cinclude2dot/.gitignore | 2 - pcr/papis/PKGBUILD | 38 ++++++++++++++++++ pcr/python-bibtexparser/PKGBUILD | 22 ++++++++++ pcr/python-habanero/Changelog.rst | 75 +++++++++++++++++++++++++++++++++++ pcr/python-habanero/PKGBUILD | 25 ++++++++++++ pcr/python-papis_python_rofi/PKGBUILD | 22 ++++++++++ pcr/python-pylibgen/PKGBUILD | 22 ++++++++++ pcr/python-pyparser/PKGBUILD | 27 +++++++++++++ pcr/python-pypi-magic/PKGBUILD | 22 ++++++++++ 10 files changed, 270 insertions(+), 2 deletions(-) create mode 100644 pcr/arxiv2bib/PKGBUILD delete mode 100644 pcr/cinclude2dot/.gitignore create mode 100644 pcr/papis/PKGBUILD create mode 100644 pcr/python-bibtexparser/PKGBUILD create mode 100644 pcr/python-habanero/Changelog.rst create mode 100644 pcr/python-habanero/PKGBUILD create mode 100644 pcr/python-papis_python_rofi/PKGBUILD create mode 100644 pcr/python-pylibgen/PKGBUILD create mode 100644 pcr/python-pyparser/PKGBUILD create mode 100644 pcr/python-pypi-magic/PKGBUILD diff --git a/pcr/arxiv2bib/PKGBUILD b/pcr/arxiv2bib/PKGBUILD new file mode 100644 index 000000000..f3bed848d --- /dev/null +++ b/pcr/arxiv2bib/PKGBUILD @@ -0,0 +1,17 @@ + +pkgname=arxiv2bib +pkgver=1.0.8 +pkgrel=1 +pkgdesc="Get arXiv.org metadata in BibTeX format" +arch=('any') +url="https://pypi.python.org/pypi/$pkgname" +license=('BSD3') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.python.org/packages/61/7d/3ddaa77d551915ac2ce484ee3d692005da556c9d51a7f492ff6749b3b0bd/$pkgname-$pkgver.tar.gz") +sha256sums=('137608ed8aa4da6594350152964b9b0f46c6efcb07f8a4dfd50309c968b647a8') + +package(){ + depends=(python) + cd "$srcdir"/$pkgname-$pkgver + python setup.py install --root="$pkgdir" +} diff --git a/pcr/cinclude2dot/.gitignore b/pcr/cinclude2dot/.gitignore deleted file mode 100644 index f326e85cb..000000000 --- a/pcr/cinclude2dot/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -cinclude2dot -cinclude2dot.1 diff --git a/pcr/papis/PKGBUILD b/pcr/papis/PKGBUILD new file mode 100644 index 000000000..1503d0271 --- /dev/null +++ b/pcr/papis/PKGBUILD @@ -0,0 +1,38 @@ +pkgname="papis" +pkgver=0.5.3 +pkgrel=1 +pkgdesc="Powerful and highly extensible command-line based document and bibliography manager." +arch=(any) +url="https://github.com/papis/papis" +license=('GPLv3') +depends=("python-setuptools" + "python-papis_python_rofi" + "python-requests" + "python-argcomplete" + "python-pyparsing" + "arxiv2bib" + "python-yaml" + "python-chardet" + "python-beautifulsoup4" + "python-vobject" + "python-prompt_toolkit" + "python-bibtexparser" + "python-unidecode" + "python-pyparser" + "python-pypi-magic" + "python-pylibgen" + "python-urwid" + "python-habanero") +source=($pkgname-$pkgver.tar.gz::https://github.com/papis/papis/archive/v$pkgver.tar.gz) +sha256sums=('7463ac387b50b77ca122b2febdb21f8f7c689395f13242542ba510957dc358b7') + +build () { + cd "$srcdir/$pkgname-$pkgver" + sed -i "s/.*configparser/#&/" setup.py + python setup.py build +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python setup.py install --root="$pkgdir/" --prefix="/usr" +} diff --git a/pcr/python-bibtexparser/PKGBUILD b/pcr/python-bibtexparser/PKGBUILD new file mode 100644 index 000000000..24cf68600 --- /dev/null +++ b/pcr/python-bibtexparser/PKGBUILD @@ -0,0 +1,22 @@ + +_pkgname=bibtexparser +pkgname=(python-$_pkgname python2-$_pkgname) +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Bibtex parser in Python" +arch=('any') +url="https://pypi.python.org/pypi/$_pkgname" +license=('LGPL3') +makedepends=('python-setuptools' 'python2-setuptools') +source=(https://pypi.python.org/packages/35/71/209bae42db6cc230ffd126dbda7ec057dd69a084acb4ddcd9ab4544c4506/$_pkgname-$pkgver.tar.gz) +sha256sums=('cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a') + +_package(){ + depends=($1 $1-future $1-pyparsing) + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done diff --git a/pcr/python-habanero/Changelog.rst b/pcr/python-habanero/Changelog.rst new file mode 100644 index 000000000..7724857a9 --- /dev/null +++ b/pcr/python-habanero/Changelog.rst @@ -0,0 +1,75 @@ +Changelog +========= + +0.6.0 (2017-10-20) +-------------------- +* Added verification and docs for additional Crossref search filters (#62) +* Big improvement to docs on readthedocs (#59) +* Added `mailto` support (#68) (#63) and related added docs about polite pool (#66) +* Added support for `select` parameter (#65) +* Added all new `/works` route filters, and simplified filter option handling within library (#60) + +0.5.0 (2017-07-20) +-------------------- +* Now using `vcrpy` to mock all unit tests (#54) +* Can now set your own base URL for content negotation (#37) +* Some field queries with `works()` were failing, but now seem to be working, likely due to fixes in Crossref API (#53) +* style input to `content_negotiation` was fixed (#57) (#58) thanks @talbertc-usgs +* Fix to `content_negotiation` when inputting a DOI as a unicode string (#56) + +0.3.0 (2017-05-21) +-------------------- +* Added more documentation for field queries, describing available fields that support field queries, and how to do field queries (#50) +* `sample` parameter maximum value is 100 - has been for a while, but wasn't updated in Crossref docs (#44) +* Updated docs that `facet` parameter can be a string query in addition to a boolean (#49) +* Documented new 10,000 max value for `/works` requests - that is, for the `offset` parameter - if you need more results than that use `cursor` (see https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md#deep-paging-with-cursors) (#47) +* Added to docs a bit about rate limiting, their current values, that they can change, and how to show them in verbose curl responses (#45) +* Now using `https://doi.org` for `cn.content_negotation` - and function gains new parameter `url` to specify different base URLs for content negotiation (#36) +* Fixes to kwargs and fix docs for what can be passed to kwargs (#41) +* Duplicated names passed to `filter` were not working - fixed now (#48) +* Raise proper HTTP errors when appropriate for `cn.content_negotiation` thanks @jmaupetit (#55) + +0.2.6 (2016-06-24) +-------------------- +* fixed problem with `cr.works()` where DOIs passed weren't making the correct API request to Crossref (#40) +* added support for field queries to all methods that support `/works` () (#38) + +0.2.2 (2016-03-09) +-------------------- +* fixed some example code that included non-working examples (#34) +* fixed bug in `registration_agency()` method, works now! (#35) +* removed redundant `filter_names` and `filter_details` bits in docs + +0.2.0 (2016-02-10) +-------------------- +* user-agent strings now passed in every http request to Crossref, including a `X-USER-AGENT` header in case the `User-Agent` string is lost (#33) +* added a disclaimer to docs about what is actually searched when searching the Crossref API - that is, only what is returned in the API, so no full text or abstracts are searched (#32) +* improved http error parsing - now passes on the hopefully meaningful error messages from the Crossref API (#31) +* more tests added (#30) +* habanero now supports cursor for deep paging. note that cursor only works with requests to the `/works` route (#18) + +0.1.3 (2015-12-02) +-------------------- +* Fix wheel file to be a universal to install on python2 and python3 (#25) +* Added method `csl_styles` to get CSL styles for use in content negotiation (#27) +* More documentation for content negotiation (#26) +* Made note in docs that `sample` param ignored unless `/works` used (#24) +* Made note in docs that funders without IDs don't show up on the `/funders` route (#23) + +0.1.1 (2015-11-17) +-------------------- +* Fix readme + +0.1.0 (2015-11-17) +-------------------- +* Now compatible with Python 2x and 3x +* `agency()` method changed to `registration_agency()` +* New method `citation_count()` - get citation counts for DOIs +* New method `crosscite()` - get a citation for DOIs, only supports simple text format +* New method `random_dois()` - get a random set of DOIs +* Now importing `xml.dom` to do small amount of XML parsing +* Changed library structure, now with module system, separated into modules for the main Crossref search API (i.e., `api.crossref.org`) including higher level methods (e.g., `registration_agency`), content negotiation, and citation counts. + +0.0.6 (2015-11-09) +-------------------- +* First pypi release diff --git a/pcr/python-habanero/PKGBUILD b/pcr/python-habanero/PKGBUILD new file mode 100644 index 000000000..5cba17135 --- /dev/null +++ b/pcr/python-habanero/PKGBUILD @@ -0,0 +1,25 @@ + +_pkgname=habanero +pkgname=(python-$_pkgname python2-$_pkgname) +pkgver=0.6.0 +pkgrel=1 +pkgdesc="Low Level Client for Crossref Search API" +arch=('any') +url="https://pypi.python.org/pypi/$_pkgname" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.python.org/packages/6a/48/3396b520da48fa7d645d29ce1de6ca706fa9f4ce37a3ea5019e1f7662cac/$_pkgname-$pkgver.tar.gz" + "Changelog.rst") +sha256sums=('cd83f633c2fc0bfc3d20dd3c5852c84056230d119eb3aba9b94b03e423875788' + '25c8c42d3c714c371db0148f91a90140a2f6e7250a5a896a27e6632b11091776') + +_package(){ + depends=($1) + cd "$srcdir"/$_pkgname-$pkgver + cp "$srcdir"/Changelog.rst . + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done diff --git a/pcr/python-papis_python_rofi/PKGBUILD b/pcr/python-papis_python_rofi/PKGBUILD new file mode 100644 index 000000000..b3bb474fd --- /dev/null +++ b/pcr/python-papis_python_rofi/PKGBUILD @@ -0,0 +1,22 @@ + +_pkgname=papis_python_rofi +pkgname=(python-$_pkgname python2-$_pkgname) +pkgver=1.0.2 +pkgrel=1 +pkgdesc="Create simple GUIs using the Rofi application (fork for papis)" +arch=('any') +url="https://pypi.python.org/pypi/${_pkgname//_/-}" +license=('GPLv3') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.python.org/packages/02/e6/62e8cd2f4cc2e14a313e0490b1252f908b2ef8a841a6e0f76a83bf89806f/${_pkgname//_/-}-$pkgver.tar.gz") +sha256sums=('3bd01a9db97b620c4249e89e37c2fe669ba405ac179ea3bffa43246c05af668e') + +_package(){ + depends=($1) + cd "$srcdir"/${_pkgname//_/-}-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done diff --git a/pcr/python-pylibgen/PKGBUILD b/pcr/python-pylibgen/PKGBUILD new file mode 100644 index 000000000..a8695e794 --- /dev/null +++ b/pcr/python-pylibgen/PKGBUILD @@ -0,0 +1,22 @@ + +_pkgname=pylibgen +pkgname=(python-$_pkgname) +pkgver=1.3.1 +pkgrel=1 +pkgdesc="Python interface to Library Genesis." +arch=('any') +url="https://pypi.python.org/pypi/$_pkgname" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=(https://pypi.python.org/packages/e7/c8/1684fcb4149000877ba18046a9d5ddc59c6091793bdd0905ff4afaf9b244/$_pkgname-$pkgver.tar.gz) +sha256sums=('303b0f279504c6b97f7619835bc9005bdadf9860c8b7a5d8204b189747c471e7') + +_package(){ + depends=($1) + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done diff --git a/pcr/python-pyparser/PKGBUILD b/pcr/python-pyparser/PKGBUILD new file mode 100644 index 000000000..b0f6f6191 --- /dev/null +++ b/pcr/python-pyparser/PKGBUILD @@ -0,0 +1,27 @@ + +_pkgname=pyparser +pkgname=(python-$_pkgname) +pkgver=1.0 +pkgrel=1 +pkgdesc="pyparser is a collection of classes to make it easier to parse text data in a pythonic way." +arch=('any') +url="https://pypi.python.org/pypi/$_pkgname" +license=('GPLv3') +makedepends=('python-setuptools' 'python2-setuptools') +source=(https://pypi.python.org/packages/1a/7c/77a059dcf29b39e6c4315ce9e9c7d4959be6f13af8ee42e6d5376b599015/$_pkgname-$pkgver.tar.gz) +sha256sums=('d1b76e2dabdd2952cadfd545229cc144afee6130bf171a031d5bf53f11b912f5') + +prepare() { + cd "$srcdir"/$_pkgname-$pkgver + sed -i 's/==/>=/' requirements.txt +} + +_package(){ + depends=($1 $1-parse) + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done diff --git a/pcr/python-pypi-magic/PKGBUILD b/pcr/python-pypi-magic/PKGBUILD new file mode 100644 index 000000000..b126ae6c1 --- /dev/null +++ b/pcr/python-pypi-magic/PKGBUILD @@ -0,0 +1,22 @@ + +_pkgname=magic +pkgname=(python-pypi-$_pkgname python2-pypi-$_pkgname) +pkgver=0.4.15 +pkgrel=1 +pkgdesc="File type identification using libmagic" +arch=('any') +url='https://pypi.python.org/pypi/python-magic/' +makedepends=('python-setuptools' 'python2-setuptools') +license=('MIT') +source=("https://pypi.python.org/packages/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-$pkgver.tar.gz") +md5sums=('e384c95a47218f66c6501cd6dd45ff59') + +_package(){ + depends=($1) + cd "$srcdir"/python-magic-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done -- cgit v1.2.3