summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD65
2 files changed, 24 insertions, 62 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1f62e60cee3..37eab7d9e68 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,14 @@
pkgbase = python-nimfa
pkgdesc = Nonnegative matrix factorization in Python
- pkgver = 1.3.2
+ pkgver = 1.4.0
pkgrel = 1
- url = https://github.com/meowklaski/nimfa
+ url = https://github.com/mims-harvard/nimfa
arch = any
license = BSD
- makedepends = python
makedepends = python-setuptools
- makedepends = python2
- makedepends = python2-setuptools
- options = !emptydirs
- source = python-nimfa-1.3.2.tar.gz::https://pypi.io/packages/source/n/nimfa/nimfa-1.3.2.tar.gz
- sha256sums = 87171493f5af8201297ea67938342e98277e7726ae8ff010b4c7738948ce0c47
-
-pkgname = python-nimfa
- depends = python
depends = python-numpy
depends = python-scipy
+ source = python-nimfa-1.4.0.tar.gz::https://files.pythonhosted.org/packages/source/n/nimfa/nimfa-1.4.0.tar.gz
+ sha256sums = 39cff2b86856d03ca8a3d9c38598034ecf1a768c325fd3a728bb9eadb8c6b919
-pkgname = python2-nimfa
- depends = python2
- depends = python2-numpy
- depends = python2-scipy
-
+pkgname = python-nimfa
diff --git a/PKGBUILD b/PKGBUILD
index 1ccad52d01e..33ed3fd5044 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,58 +1,31 @@
-# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
+# Contributor: Clint Valentine <valentine.clint@gmail.com>
-_name=nimfa
-pkgbase='python-nimfa'
-pkgname=('python-nimfa' 'python2-nimfa')
-pkgver=1.3.2
+pkgname=python-nimfa
+pkgver=1.4.0
pkgrel=1
pkgdesc="Nonnegative matrix factorization in Python"
arch=('any')
-url=https://github.com/meowklaski/"${_name}"
+url='https://github.com/mims-harvard/nimfa'
license=('BSD')
-makedepends=(
- 'python' 'python-setuptools'
- 'python2' 'python2-setuptools')
-options=(!emptydirs)
-source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz)
-sha256sums=('87171493f5af8201297ea67938342e98277e7726ae8ff010b4c7738948ce0c47')
-
-prepare() {
- cp -a nimfa-"${pkgver}"{,-py2}
-}
-
-package() {
- cd "${srcdir}"/nimfa-"${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1
-}
+depends=('python-numpy' 'python-scipy')
+makedepends=('python-setuptools')
+# checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/n/nimfa/nimfa-$pkgver.tar.gz")
+sha256sums=('39cff2b86856d03ca8a3d9c38598034ecf1a768c325fd3a728bb9eadb8c6b919')
build(){
- cd "${srcdir}"/nimfa-"${pkgver}"
- python setup.py build
-
- cd "${srcdir}"/nimfa-"${pkgver}"-py2
- python2 setup.py build
+ cd "nimfa-$pkgver"
+ python setup.py build
}
-package_python2-nimfa() {
- depends=(
- 'python2'
- 'python2-numpy'
- 'python2-scipy'
- )
-
- cd nimfa-"${pkgver}"-py2
- python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
- install -Dm644 COPYING.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING.txt
-}
+# check() {
+# pushd "nimfa-$pkgver"
+# python setup.py pytest
+# }
package_python-nimfa() {
- depends=(
- 'python'
- 'python-numpy'
- 'python-scipy'
- )
-
- cd nimfa-"${pkgver}"
- python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
- install -Dm644 COPYING.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING.txt
+ cd "nimfa-$pkgver"
+ PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm 644 COPYING.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}