Package Details: python-pampy 0.2.1-2

Git Clone URL: https://aur.archlinux.org/python-pampy.git (read-only, click to copy)
Package Base: python-pampy
Description: The Pattern Matching for Python you always dreamed of
Upstream URL: https://github.com/santinic/pampy
Licenses: MIT
Submitter: dariost
Maintainer: dariost
Last Packager: dariost
Votes: 1
Popularity: 0.000000
First Submitted: 2019-08-16 16:59 (UTC)
Last Updated: 2020-05-03 11:39 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

berquist commented on 2020-02-02 23:31 (UTC)

The package's setup.py is actually broken; it mistakenly installs its tests. Here is a patched PKGBUILD and the patch file that fixes this:

# Maintainer: Dario Ostuni <another.code.996@gmail.com>
pkgname=python-pampy
pkgver=0.2.1
pkgrel=2
pkgdesc="The Pattern Matching for Python you always dreamed of"
arch=('any')
url="https://github.com/santinic/pampy"
license=('MIT')
depends=('python')
options=(!emptydirs)
#source=("https://github.com/santinic/pampy/archive/v${pkgver}.tar.gz")
source=("pampy-${pkgver}::git+https://github.com/santinic/pampy.git#commit=27de362e63310eaa5044c7c87414d19aacefef56"
        "setup.patch")
sha384sums=('SKIP'
            '104669766a7e2654901f6ad2f607037c2de45502d06c6718268535645134c7c75562061b1cc8182d4f995396e9dcac73')

prepare() {
    cd "$srcdir/pampy-${pkgver}"
    patch -p1 < ../setup.patch
}

package() {
    cd "$srcdir/pampy-${pkgver}"
    python setup.py install --root="$pkgdir/" --optimize=1
}
diff --git a/PKGBUILD b/PKGBUILD
index f74c6a0..c29f3ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Dario Ostuni <another.code.996@gmail.com>
 pkgname=python-pampy
 pkgver=0.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc="The Pattern Matching for Python you always dreamed of"
 arch=('any')
 url="https://github.com/santinic/pampy"
@@ -9,8 +9,15 @@ license=('MIT')
 depends=('python')
 options=(!emptydirs)
 #source=("https://github.com/santinic/pampy/archive/v${pkgver}.tar.gz")
-source=("pampy-${pkgver}::git+https://github.com/santinic/pampy.git#commit=27de362e63310eaa5044c7c87414d19aacefef56")
-sha384sums=('SKIP')
+source=("pampy-${pkgver}::git+https://github.com/santinic/pampy.git#commit=27de362e63310eaa5044c7c87414d19aacefef56"
+        "setup.patch")
+sha384sums=('SKIP'
+            '104669766a7e2654901f6ad2f607037c2de45502d06c6718268535645134c7c75562061b1cc8182d4f995396e9dcac73')
+
+prepare() {
+    cd "$srcdir/pampy-${pkgver}"
+    patch -p1 < ../setup.patch
+}

 package() {
     cd "$srcdir/pampy-${pkgver}"