package: add python-semver
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 7 Aug 2018 09:38:39 +0000 (11:38 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 9 Aug 2018 14:58:22 +0000 (16:58 +0200)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/python-semver/Config.in [new file with mode: 0644]
package/python-semver/python-semver.hash [new file with mode: 0644]
package/python-semver/python-semver.mk [new file with mode: 0644]

index 215506c71cbe0cb3a87efec227c76b4d8a6489bb..67adc08b9a5b4ba69f4f4f4a58d2978ad0942d28 100644 (file)
@@ -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/
index f5a17492c75dabb2719b987850be012b5de4f7cf..18813b3965bd2f5a4014b975e3884c4c0d2f449d 100644 (file)
@@ -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 (file)
index 0000000..c66231a
--- /dev/null
@@ -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 (file)
index 0000000..e18cc1c
--- /dev/null
@@ -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 (file)
index 0000000..afdd345
--- /dev/null
@@ -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))