summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavle Portic2020-09-22 20:59:08 +0200
committerPavle Portic2020-09-22 20:59:08 +0200
commit3f3d20faf2a2031bfd79eeeab7f91eb9a19bb9e8 (patch)
treebdcf3bf0031fa7b849dadda022a1585b89aaf46f
downloadaur-3f3d20faf2a2031bfd79eeeab7f91eb9a19bb9e8.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD25
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a4893e07096
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-inject
+ pkgdesc = Python dependency injection framework
+ pkgver = 4.3.1
+ pkgrel = 1
+ url = https://github.com/ivankorobkov/python-inject
+ arch = any
+ license = APACHE
+ makedepends = python-setuptools
+ depends = python
+ source = https://files.pythonhosted.org/packages/source/I/Inject/Inject-4.3.1.tar.gz
+ sha256sums = 7f996f2c9ed2082af776ddf6b528d97036898ac63040385feb1d12286a73c3cc
+
+pkgname = python-inject
+ depends = python
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..236eebf8d14
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Pavle Portic <pavle.portic@tilda.center>
+pkgbase='python-inject'
+pkgname=('python-inject')
+_module='Inject'
+pkgver='4.3.1'
+pkgrel=1
+pkgdesc="Python dependency injection framework"
+url="https://github.com/ivankorobkov/python-inject"
+depends=('python')
+makedepends=('python-setuptools')
+license=('APACHE')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
+sha256sums=('7f996f2c9ed2082af776ddf6b528d97036898ac63040385feb1d12286a73c3cc')
+
+build() {
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ depends+=()
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}