[arch-commits] Commit in python-pipenv-to-requirements/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 27 08:14:24 UTC 2020


    Date: Monday, July 27, 2020 @ 08:14:23
  Author: felixonmars
Revision: 665413

archrelease: copy trunk to community-any

Added:
  python-pipenv-to-requirements/repos/community-any/
  python-pipenv-to-requirements/repos/community-any/PKGBUILD
    (from rev 665412, python-pipenv-to-requirements/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-pipenv-to-requirements/repos/community-any/PKGBUILD (from rev 665412, python-pipenv-to-requirements/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-07-27 08:14:23 UTC (rev 665413)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pipenv-to-requirements
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Generate requirements[-dev].txt from Pipfile using pipenv"
+url="https://github.com/gsemet/pipenv-to-requirements"
+license=('MIT')
+arch=('any')
+depends=('python-pbr' 'python-pipenv')
+checkdepends=('python-pyfakefs' 'python-pytest-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gsemet/pipenv-to-requirements/archive/$pkgver.tar.gz")
+sha512sums=('f89be89e120cc3d9a543c8efc1ff4c517f3d47145133a7db2f842dcbf168099588a2d281b7fb69b6ddf63439fbdebafd683b258a349cc7ad50efd454495caf14')
+
+export PBR_VERSION=$pkgver
+
+build() {
+  cd pipenv-to-requirements-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pipenv-to-requirements-$pkgver
+  pytest
+}
+
+package() {
+  cd pipenv-to-requirements-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list