summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2018-08-07 09:38:39 (GMT)
committerPeter Korsgaard <peter@korsgaard.com>2018-08-09 14:58:22 (GMT)
commitfa680e2903e8f9e8c2ed26c5f5ce7bb005c3be6c (patch)
tree902318730a99e00a9a29818a61a84ac4ec5617dd
parent62df8bfc4463f6970d9c8c894b4dfe76a2262e86 (diff)
downloadbuildroot-fa680e2903e8f9e8c2ed26c5f5ce7bb005c3be6c.tar.gz
buildroot-fa680e2903e8f9e8c2ed26c5f5ce7bb005c3be6c.tar.bz2
package: add python-semver
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--DEVELOPERS1
-rw-r--r--package/Config.in1
-rw-r--r--package/python-semver/Config.in6
-rw-r--r--package/python-semver/python-semver.hash3
-rw-r--r--package/python-semver/python-semver.mk14
5 files changed, 25 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index 215506c..67adc08 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1557,6 +1557,7 @@ F: package/python-ipaddr/
F: package/python-pam/
F: package/python-psutil/
F: package/python-request-id/
+F: package/python-semver/
F: package/python-texttable/
F: package/python-validators/
F: package/python-webob/
diff --git a/package/Config.in b/package/Config.in
index f5a1749..18813b3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -940,6 +940,7 @@ menu "External python modules"
source "package/python-sdnotify/Config.in"
source "package/python-secretstorage/Config.in"
source "package/python-see/Config.in"
+ source "package/python-semver/Config.in"
source "package/python-serial/Config.in"
source "package/python-service-identity/Config.in"
source "package/python-setproctitle/Config.in"
diff --git a/package/python-semver/Config.in b/package/python-semver/Config.in
new file mode 100644
index 0000000..c66231a
--- /dev/null
+++ b/package/python-semver/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_SEMVER
+ bool "python-semver"
+ help
+ Python helper for Semantic Versioning (http://semver.org/).
+
+ https://github.com/k-bx/python-semver
diff --git a/package/python-semver/python-semver.hash b/package/python-semver/python-semver.hash
new file mode 100644
index 0000000..e18cc1c
--- /dev/null
+++ b/package/python-semver/python-semver.hash
@@ -0,0 +1,3 @@
+# md5, sha256 from https://pypi.org/pypi/semver/json
+md5 dc579ba9d0bb2137bad5324d4bdb7e40 semver-2.8.1.tar.gz
+sha256 5b09010a66d9a3837211bb7ae5a20d10ba88f8cb49e92cb139a69ef90d5060d8 semver-2.8.1.tar.gz
diff --git a/package/python-semver/python-semver.mk b/package/python-semver/python-semver.mk
new file mode 100644
index 0000000..afdd345
--- /dev/null
+++ b/package/python-semver/python-semver.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-semver
+#
+################################################################################
+
+PYTHON_SEMVER_VERSION = 2.8.1
+PYTHON_SEMVER_SOURCE = semver-$(PYTHON_SEMVER_VERSION).tar.gz
+PYTHON_SEMVER_SITE = https://files.pythonhosted.org/packages/47/13/8ae74584d6dd33a1d640ea27cd656a9f718132e75d759c09377d10d64595
+PYTHON_SEMVER_SETUP_TYPE = setuptools
+# no license file in tarball, but available in git
+PYTHON_SEMVER_LICENSE = BSD-3-Clause
+
+$(eval $(python-package))