package/python-colorzero: new package

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Peter Seiderer 2020-06-13 21:20:31 +02:00 committed by Thomas Petazzoni
parent 35bbcde75c
commit 185398f619
6 changed files with 27 additions and 0 deletions

View File

@ -2025,6 +2025,7 @@ F: package/iwd/
F: package/libevdev/
F: package/log4cplus/
F: package/postgresql/
F: package/python-colorzero/
F: package/qt5/
F: package/quotatool/
F: package/racehound/

View File

@ -913,6 +913,7 @@ menu "External python modules"
source "package/python-coherence/Config.in"
source "package/python-colorama/Config.in"
source "package/python-colorlog/Config.in"
source "package/python-colorzero/Config.in"
source "package/python-configobj/Config.in"
source "package/python-configshell-fb/Config.in"
source "package/python-constantly/Config.in"

View File

@ -0,0 +1,6 @@
config BR2_PACKAGE_PYTHON_COLORZERO
bool "python-colorzero"
help
A color manipulation library for Python.
https://github.com/waveform80/colorzero

View File

@ -0,0 +1,4 @@
# Locally computed
sha256 24d30b55793150f9ae7478f8aa2126fe5598a31f928907eadbf9d5a19aa9964c python-colorzero-1.1.tar.gz
# Locally computed
sha256 47778d78e05bb6c39c022814e3712a0327c6418c7251757e72167ab8ff12bb4d LICENSE.txt

View File

@ -0,0 +1,13 @@
################################################################################
#
# python-colorzero
#
################################################################################
PYTHON_COLORZERO_VERSION = 1.1
PYTHON_COLORZERO_SITE = $(call github,waveform80,colorzero,release-$(PYTHON_COLORZERO_VERSION))
PYTHON_COLORZERO_LICENSE = BSD-3-Clause
PYTHON_COLORZERO_LICENSE_FILES = LICENSE.txt
PYTHON_COLORZERO_SETUP_TYPE = setuptools
$(eval $(python-package))

View File

@ -383,6 +383,8 @@ class CVE:
if not hasattr(cve_affected_version, "version"):
print("Cannot parse CVE affected version '%s'" % v["version_value"])
continue
print(pkg_version)
print(cve_affected_version)
return pkg_version <= cve_affected_version
else:
print("version_affected: %s" % v['version_affected'])