diff mbox series

[2/6] package/python-appdirs: add new package

Message ID 20220403221953.1158787-2-emile.cormier.jr@gmail.com
State Accepted
Headers show
Series [1/6] package/python-snappy: bump version to 0.6.1 | expand

Commit Message

Emile Cormier April 3, 2022, 10:19 p.m. UTC
From: ecorm <ecorm@users.noreply.github.com>

Required by python-twisted[conch], which is required by python-crossbar.
Signed-off-by: Emile Cormier <emile.cormier.jr@gmail.com>
---
 package/Config.in                          |  1 +
 package/python-appdirs/Config.in           |  7 +++++++
 package/python-appdirs/python-appdirs.hash |  5 +++++
 package/python-appdirs/python-appdirs.mk   | 14 ++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-appdirs/Config.in
 create mode 100644 package/python-appdirs/python-appdirs.hash
 create mode 100644 package/python-appdirs/python-appdirs.mk

Comments

Thomas Petazzoni Aug. 7, 2022, 2:50 p.m. UTC | #1
Hello Emile,

On Sun,  3 Apr 2022 19:19:49 -0300
Emile Cormier <emile.cormier.jr@gmail.com> wrote:

> From: ecorm <ecorm@users.noreply.github.com>
> 
> Required by python-twisted[conch], which is required by python-crossbar.
> Signed-off-by: Emile Cormier <emile.cormier.jr@gmail.com>
> ---
>  package/Config.in                          |  1 +
>  package/python-appdirs/Config.in           |  7 +++++++
>  package/python-appdirs/python-appdirs.hash |  5 +++++
>  package/python-appdirs/python-appdirs.mk   | 14 ++++++++++++++
>  4 files changed, 27 insertions(+)
>  create mode 100644 package/python-appdirs/Config.in
>  create mode 100644 package/python-appdirs/python-appdirs.hash
>  create mode 100644 package/python-appdirs/python-appdirs.mk

First of all, thanks a lot for your contribution, and sorry for the
slow feedback. I have now merged your patch, after:

 - Fixing the e-mail in the From: field

 - Adding the missing empty newline before the Signed-off-by line

 - Adding the missing entry to the DEVELOPERS file

Thanks!

Thomas
diff mbox series

Patch

diff --git a/package/Config.in b/package/Config.in
index 0d5d763180..a1964df5f1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -929,6 +929,7 @@  menu "External python modules"
 	source "package/python-aiozipkin/Config.in"
 	source "package/python-alsaaudio/Config.in"
 	source "package/python-ansicolors/Config.in"
+	source "package/python-appdirs/Config.in"
 	source "package/python-argh/Config.in"
 	source "package/python-argon2-cffi/Config.in"
 	source "package/python-argon2-cffi-bindings/Config.in"
diff --git a/package/python-appdirs/Config.in b/package/python-appdirs/Config.in
new file mode 100644
index 0000000000..5585759aa6
--- /dev/null
+++ b/package/python-appdirs/Config.in
@@ -0,0 +1,7 @@ 
+config BR2_PACKAGE_PYTHON_APPDIRS
+	bool "python-appdirs"
+	help
+	  A small Python module for determining appropriate platform-
+	  specific dirs, e.g. a "user data dir".
+
+	  http://github.com/ActiveState/appdirs
diff --git a/package/python-appdirs/python-appdirs.hash b/package/python-appdirs/python-appdirs.hash
new file mode 100644
index 0000000000..52689b8b2c
--- /dev/null
+++ b/package/python-appdirs/python-appdirs.hash
@@ -0,0 +1,5 @@ 
+# md5, sha256 from https://pypi.org/pypi/appdirs/json
+md5  d6bca12613174185dd9abc8a29f4f012  appdirs-1.4.4.tar.gz
+sha256  7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41  appdirs-1.4.4.tar.gz
+# Locally computed sha256 checksums
+sha256  36ddb4d0a745a93ab203203d7190814b1b89727d254caff48c7a7afbbd47000b  LICENSE.txt
diff --git a/package/python-appdirs/python-appdirs.mk b/package/python-appdirs/python-appdirs.mk
new file mode 100644
index 0000000000..222aadbb29
--- /dev/null
+++ b/package/python-appdirs/python-appdirs.mk
@@ -0,0 +1,14 @@ 
+################################################################################
+#
+# python-appdirs
+#
+################################################################################
+
+PYTHON_APPDIRS_VERSION = 1.4.4
+PYTHON_APPDIRS_SOURCE = appdirs-$(PYTHON_APPDIRS_VERSION).tar.gz
+PYTHON_APPDIRS_SITE = https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40
+PYTHON_APPDIRS_SETUP_TYPE = setuptools
+PYTHON_APPDIRS_LICENSE = MIT
+PYTHON_APPDIRS_LICENSE_FILES = LICENSE.txt
+
+$(eval $(python-package))