python-toml: add recipes for python2 and python3

This package is a Python library for parsing and creating TOML [1].

Another python TOML parser library named pytoml already exists in
meta-oe/recipes-devtools/python/python*-pytoml_*.bb but this library is
deprecated and it is explicitly explained to consider using the toml
package instead [2].

1: https://github.com/toml-lang/toml
2: cd2a62e144

Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jean-Marie LEMETAYER
2019-10-03 16:07:29 +02:00
committed by Khem Raj
parent fdd9aea012
commit a0c79bfccb
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
SUMMARY = "Python Library for Tom's Obvious, Minimal Language"
HOMEPAGE = "https://github.com/uiri/toml"
LICENSE = "MIT"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d6012eea477117abf51c31262a152f8"
SRC_URI[md5sum] = "63fffbe2d632865ec29cd69bfdf36682"
SRC_URI[sha256sum] = "229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c"
inherit pypi

View File

@@ -0,0 +1,6 @@
inherit setuptools
require python-toml.inc
RDEPENDS_${PN} += " \
${PYTHON_PN}-datetime \
"

View File

@@ -0,0 +1,6 @@
inherit setuptools3
require python-toml.inc
RDEPENDS_${PN} += " \
${PYTHON_PN}-misc \
"