Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions lang/python/django2-cors-headers/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=django2-cors-headers
PKG_VERSION:=3.1.0
PKG_RELEASE:=1
PKG_LICENSE:=MIT

PKG_SOURCE:=django-cors-headers-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-cors-headers/
PKG_HASH:=e69b1c909f2eddc7ef2a24f071583bc22b73b871731ea3370ac52b3318c43b3c

PKG_BUILD_DIR:=$(BUILD_DIR)/django2-cors-headers-$(PKG_VERSION)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/django2-cors-headers
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS).
URL:=https://github.com/ottoyiu/django-cors-headers
DEPENDS:=+django2
VARIANT:=python3
endef

define Package/django2-cors-headers/description
Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS).
endef

$(eval $(call Py3Package,django2-cors-headers))
$(eval $(call BuildPackage,django2-cors-headers))
33 changes: 33 additions & 0 deletions lang/python/django2-etesync-journal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=django2-etesync-journal
PKG_VERSION:=1.0.2
PKG_RELEASE:=1
PKG_LICENSE:=AGPLv3

PKG_SOURCE:=django-etesync-journal-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-etesync-journal/
PKG_HASH:=716df1fc8670c79750e8a1e736b69ddbdbd238237565874ea9648387cc50626e

PKG_BUILD_DIR:=$(BUILD_DIR)/django2-etesync-journal-$(PKG_VERSION)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/django2-etesync-journal
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=The server side implementation of the EteSync protocol.
URL:=https://www.etesync.com/
DEPENDS:=+django2-cors-headers +django2restframework +drf-nested-routers
VARIANT:=python3
endef

define Package/django2-etesync-journal/description
The server side implementation of the EteSync protocol.
endef

$(eval $(call Py3Package,django2-etesync-journal))
$(eval $(call BuildPackage,django2-etesync-journal))
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-etesync-journal',
version='1.0.2',
- packages=find_packages(),
+ packages=[p for p in find_packages() if p != 'tests'],
include_package_data=True,
license='AGPLv3',
description='The server side implementation of the EteSync protocol.',
40 changes: 40 additions & 0 deletions lang/python/django2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=django2
PKG_VERSION:=2.2.4
PKG_RELEASE:=1
PKG_LICENSE:=BSD-3-Clause

PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/D/Django/
PKG_HASH:=16a5d54411599780ac9dfe3b9b38f90f785c51259a584e0b24b6f14a7f69aae8

PKG_BUILD_DIR:=$(BUILD_DIR)/django2-$(PKG_VERSION)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/django2
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=The web framework for perfectionists with deadlines.
URL:=https://www.djangoproject.com/
DEPENDS:=+python3-base +python3-distutils +python3-urllib +python3-pytz +python3-logging +python3-cgi +python3-decimal +python3-codecs +sqlparse +python3-sqlite3 +python3-unittest +python3-xml +python3-openssl
VARIANT:=python3
endef

define Package/django2/description
The web framework for perfectionists with deadlines.
endef

define Py3Package/xxx/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/django-admin.py $(1)/usr/bin/
# fix python exec path
sed -i 's_#!.*_#!/usr/bin/python3_g' $(1)/usr/bin/django-admin.py
endef

$(eval $(call Py3Package,django2))
$(eval $(call BuildPackage,django2))
33 changes: 33 additions & 0 deletions lang/python/django2restframework/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=django2restframework
PKG_VERSION:=3.10.2
PKG_RELEASE:=1
PKG_LICENSE:=BSD-3-Clause

PKG_SOURCE:=djangorestframework-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/djangorestframework/
PKG_HASH:=aedb48010ebfab9651aaab1df5fd3b4848eb4182afc909852a2110c24f89a359

PKG_BUILD_DIR:=$(BUILD_DIR)/django2restframework-$(PKG_VERSION)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/django2restframework
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Web APIs for Django, made easy.
URL:=https://www.django-rest-framework.org/
DEPENDS:=+django2
VARIANT:=python3
endef

define Package/django2restframework/description
Web APIs for Django, made easy.
endef

$(eval $(call Py3Package,django2restframework))
$(eval $(call BuildPackage,django2restframework))
33 changes: 33 additions & 0 deletions lang/python/drf-nested-routers/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=drf-nested-routers
PKG_VERSION:=0.91
PKG_RELEASE:=1
PKG_LICENSE:=Apache

PKG_SOURCE:=drf-nested-routers-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/drf-nested-routers/
PKG_BUILD_DIR:=$(BUILD_DIR)/drf-nested-routers-$(PKG_VERSION)
PKG_HASH:=46e5c3abc15c782cafafd7d75028e8f9121bbc6228e3599bbb48a3daa4585034

PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/drf-nested-routers
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Nested resources for the Django Rest Framework
URL:=https://github.com/alanjds/drf-nested-routers
DEPENDS:=+django2
VARIANT:=python3
endef

define Package/drf-nested-routers/description
Nested resources for the Django Rest Framework
endef

$(eval $(call Py3Package,drf-nested-routers))
$(eval $(call BuildPackage,drf-nested-routers))
33 changes: 33 additions & 0 deletions lang/python/sqlparse/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=sqlparse
PKG_VERSION:=0.3.0
PKG_RELEASE:=1
PKG_LICENSE:=BSD

PKG_SOURCE:=sqlparse-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/sqlparse
PKG_HASH:=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873

PKG_BUILD_DIR:=$(BUILD_DIR)/sqlparse-$(BUILD_VARIANT)-$(PKG_VERSION)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/sqlparse
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Non-validating SQL parser module.
URL:=https://github.com/andialbrecht/sqlparse
DEPENDS:=python3-base
VARIANT:=python3
endef

define Package/sqlparse/description
A non-validating SQL parser module. It provides support for parsing, splitting and formatting SQL statements.
endef

$(eval $(call Py3Package,sqlparse))
$(eval $(call BuildPackage,sqlparse))
Loading