diff mbox series

[1/1] package/python-pbkdf2: new package.

Message ID 20200207153106.5042-1-raphael.melotte@essensium.com
State New
Headers show
Series [1/1] package/python-pbkdf2: new package. | expand

Commit Message

Raphaël Mélotte Feb. 7, 2020, 3:31 p.m. UTC
PKCS#5 v2.0 PBKDF2 Module.

Signed-off-by: Raphaël Mélotte <raphael.melotte@essensium.com>
---
 DEVELOPERS                               |  3 +++
 package/Config.in                        |  1 +
 package/python-pbkdf2/Config.in          |  6 ++++++
 package/python-pbkdf2/python-pbkdf2.hash |  3 +++
 package/python-pbkdf2/python-pbkdf2.mk   | 13 +++++++++++++
 5 files changed, 26 insertions(+)
 create mode 100644 package/python-pbkdf2/Config.in
 create mode 100644 package/python-pbkdf2/python-pbkdf2.hash
 create mode 100644 package/python-pbkdf2/python-pbkdf2.mk

Comments

Yegor Yefremov Feb. 7, 2020, 3:47 p.m. UTC | #1
Hi Raphaël,

On Fri, Feb 7, 2020 at 4:31 PM Raphaël Mélotte
<raphael.melotte@essensium.com> wrote:
>
> PKCS#5 v2.0 PBKDF2 Module.
>
> Signed-off-by: Raphaël Mélotte <raphael.melotte@essensium.com>
> ---
>  DEVELOPERS                               |  3 +++
>  package/Config.in                        |  1 +
>  package/python-pbkdf2/Config.in          |  6 ++++++
>  package/python-pbkdf2/python-pbkdf2.hash |  3 +++
>  package/python-pbkdf2/python-pbkdf2.mk   | 13 +++++++++++++
>  5 files changed, 26 insertions(+)
>  create mode 100644 package/python-pbkdf2/Config.in
>  create mode 100644 package/python-pbkdf2/python-pbkdf2.hash
>  create mode 100644 package/python-pbkdf2/python-pbkdf2.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index d8ea23e0b3..7701958beb 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -2076,6 +2076,9 @@ N:        Rahul Jain <rahul.jain@imgtec.com>
>  F:     package/uhttpd/
>  F:     package/ustream-ssl/
>
> +N:  Raphaël Mélotte <raphael.melotte@essensium.com>
> +F:  package/python-pbkdf2/
> +
>  N:     Refik Tuzakli <tuzakli.refik@gmail.com>
>  F:     package/paho-mqtt-cpp/
>
> diff --git a/package/Config.in b/package/Config.in
> index bad4f9cba6..2142b4e978 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1029,6 +1029,7 @@ menu "External python modules"
>         source "package/python-pathpy/Config.in"
>         source "package/python-pathtools/Config.in"
>         source "package/python-pathvalidate/Config.in"
> +       source "package/python-pbkdf2/Config.in"
>         source "package/python-periphery/Config.in"
>         source "package/python-pexpect/Config.in"
>         source "package/python-pickleshare/Config.in"
> diff --git a/package/python-pbkdf2/Config.in b/package/python-pbkdf2/Config.in
> new file mode 100644
> index 0000000000..90015b2cc0
> --- /dev/null
> +++ b/package/python-pbkdf2/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_PYTHON_PBKDF2
> +       bool "python-pbkdf2"
> +       help
> +         PKCS\#5 v2.0 PBKDF2 Module.

Perhaps a longer description is better:

This module implements the password-based key derivation function,
PBKDF2, specified in RSA PKCS#5 v2.0.

> +
> +         http://www.dlitz.net/software/python-pbkdf2/
> diff --git a/package/python-pbkdf2/python-pbkdf2.hash b/package/python-pbkdf2/python-pbkdf2.hash
> new file mode 100644
> index 0000000000..4accff7662
> --- /dev/null
> +++ b/package/python-pbkdf2/python-pbkdf2.hash
> @@ -0,0 +1,3 @@
> +# md5, sha256 from https://pypi.org/pypi/pbkdf2/json
> +md5    40cda566f61420490206597243dd869f  pbkdf2-1.3.tar.gz
> +sha256 ac6397369f128212c43064a2b4878038dab78dab41875364554aaf2a684e6979  pbkdf2-1.3.tar.gz
> diff --git a/package/python-pbkdf2/python-pbkdf2.mk b/package/python-pbkdf2/python-pbkdf2.mk
> new file mode 100644
> index 0000000000..f015297524
> --- /dev/null
> +++ b/package/python-pbkdf2/python-pbkdf2.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# python-pbkdf2
> +#
> +################################################################################
> +
> +PYTHON_PBKDF2_VERSION = 1.3
> +PYTHON_PBKDF2_SOURCE = pbkdf2-$(PYTHON_PBKDF2_VERSION).tar.gz
> +PYTHON_PBKDF2_SITE = https://files.pythonhosted.org/packages/02/c0/6a2376ae81beb82eda645a091684c0b0becb86b972def7849ea9066e3d5e
> +PYTHON_PBKDF2_SETUP_TYPE = setuptools
> +PYTHON_PBKDF2_LICENSE = MIT

The license text is in the in the readme.txt file [1]. So you can
specify it as PYTHON_PBKDF2_LICENSE_FILES and add its hash.

[1] https://github.com/dlitz/python-pbkdf2/blob/master/README.txt

Regards,
Yegor

> +
> +$(eval $(python-package))
> --
> 2.23.0
>
Raphaël Mélotte Feb. 10, 2020, 1:30 p.m. UTC | #2
Hi Yegor,


On 2/7/20 4:47 PM, Yegor Yefremov wrote:
>
> [...]
>
> Perhaps a longer description is better:
>
> This module implements the password-based key derivation function,
> PBKDF2, specified in RSA PKCS#5 v2.0.
>
> [...]
> The license text is in the in the readme.txt file [1]. So you can
> specify it as PYTHON_PBKDF2_LICENSE_FILES and add its hash.
>
> [1] https://github.com/dlitz/python-pbkdf2/blob/master/README.txt
>
> Regards,
> Yegor
>
>

Thanks for the suggestions, I'll send a new revision.


Kind regards,

Raphaël
diff mbox series

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index d8ea23e0b3..7701958beb 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2076,6 +2076,9 @@  N:	Rahul Jain <rahul.jain@imgtec.com>
 F:	package/uhttpd/
 F:	package/ustream-ssl/
 
+N:  Raphaël Mélotte <raphael.melotte@essensium.com>
+F:  package/python-pbkdf2/
+
 N:	Refik Tuzakli <tuzakli.refik@gmail.com>
 F:	package/paho-mqtt-cpp/
 
diff --git a/package/Config.in b/package/Config.in
index bad4f9cba6..2142b4e978 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1029,6 +1029,7 @@  menu "External python modules"
 	source "package/python-pathpy/Config.in"
 	source "package/python-pathtools/Config.in"
 	source "package/python-pathvalidate/Config.in"
+	source "package/python-pbkdf2/Config.in"
 	source "package/python-periphery/Config.in"
 	source "package/python-pexpect/Config.in"
 	source "package/python-pickleshare/Config.in"
diff --git a/package/python-pbkdf2/Config.in b/package/python-pbkdf2/Config.in
new file mode 100644
index 0000000000..90015b2cc0
--- /dev/null
+++ b/package/python-pbkdf2/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_PYTHON_PBKDF2
+	bool "python-pbkdf2"
+	help
+	  PKCS\#5 v2.0 PBKDF2 Module.
+
+	  http://www.dlitz.net/software/python-pbkdf2/
diff --git a/package/python-pbkdf2/python-pbkdf2.hash b/package/python-pbkdf2/python-pbkdf2.hash
new file mode 100644
index 0000000000..4accff7662
--- /dev/null
+++ b/package/python-pbkdf2/python-pbkdf2.hash
@@ -0,0 +1,3 @@ 
+# md5, sha256 from https://pypi.org/pypi/pbkdf2/json
+md5	40cda566f61420490206597243dd869f  pbkdf2-1.3.tar.gz
+sha256	ac6397369f128212c43064a2b4878038dab78dab41875364554aaf2a684e6979  pbkdf2-1.3.tar.gz
diff --git a/package/python-pbkdf2/python-pbkdf2.mk b/package/python-pbkdf2/python-pbkdf2.mk
new file mode 100644
index 0000000000..f015297524
--- /dev/null
+++ b/package/python-pbkdf2/python-pbkdf2.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-pbkdf2
+#
+################################################################################
+
+PYTHON_PBKDF2_VERSION = 1.3
+PYTHON_PBKDF2_SOURCE = pbkdf2-$(PYTHON_PBKDF2_VERSION).tar.gz
+PYTHON_PBKDF2_SITE = https://files.pythonhosted.org/packages/02/c0/6a2376ae81beb82eda645a091684c0b0becb86b972def7849ea9066e3d5e
+PYTHON_PBKDF2_SETUP_TYPE = setuptools
+PYTHON_PBKDF2_LICENSE = MIT
+
+$(eval $(python-package))