pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
spid-compliant-certificates: Import spid-compliant-certificates-0.2
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun Aug 1 12:02:34 2021 +0200
Changeset: e2461a08706b65daf2cfa83e201b4038cdbbed9e
Added Files:
spid-compliant-certificates/DESCR
spid-compliant-certificates/Makefile
spid-compliant-certificates/PLIST
spid-compliant-certificates/distinfo
spid-compliant-certificates/patches/patch-setup.py
Log Message:
spid-compliant-certificates: Import spid-compliant-certificates-0.2
Python native solution to generate and validate X.509 certificates
according to Avviso SPID n.29 v3.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e2461a08706b65daf2cfa83e201b4038cdbbed9e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
spid-compliant-certificates/DESCR | 2 +
spid-compliant-certificates/Makefile | 25 ++++++++
spid-compliant-certificates/PLIST | 70 ++++++++++++++++++++++
spid-compliant-certificates/distinfo | 7 +++
spid-compliant-certificates/patches/patch-setup.py | 25 ++++++++
5 files changed, 129 insertions(+)
diffs:
diff --git a/spid-compliant-certificates/DESCR b/spid-compliant-certificates/DESCR
new file mode 100644
index 0000000000..dc8e1473de
--- /dev/null
+++ b/spid-compliant-certificates/DESCR
@@ -0,0 +1,2 @@
+Python native solution to generate and validate X.509 certificates
+according to Avviso SPID n.29 v3.
diff --git a/spid-compliant-certificates/Makefile b/spid-compliant-certificates/Makefile
new file mode 100644
index 0000000000..fc1a7b9d7c
--- /dev/null
+++ b/spid-compliant-certificates/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= spid_compliant_certificates-0.2
+PKGNAME= ${DISTNAME:S/_/-/g}
+CATEGORIES= security python
+MASTER_SITES= ${MASTER_SITE_PYPI:=s/spid-compliant-certificates/}
+
+MAINTAINER= leot%NetBSD.org@localhost
+HOMEPAGE= https://github.com/italia/spid-compliant-certificates-python
+COMMENT= Generate X509 certificates according to Avviso SPID 29 v3
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-cryptography>=3.3.0:../../security/py-cryptography
+DEPENDS+= ${PYPKGPREFIX}-iso3166>=1.0.1:../../devel/py-iso3166
+DEPENDS+= ${PYPKGPREFIX}-packaging>=1.0.1:../../devel/py-packaging
+DEPENDS+= ${PYPKGPREFIX}-requests>=2.25.1:../../devel/py-requests
+DEPENDS+= ${PYPKGPREFIX}-ruamel-yaml>=0.17.4:../../devel/py-ruamel-yaml
+
+USE_LANGUAGES= # none
+
+# Only for Python 3
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/spid-compliant-certificates/PLIST b/spid-compliant-certificates/PLIST
new file mode 100644
index 0000000000..fe6777b478
--- /dev/null
+++ b/spid-compliant-certificates/PLIST
@@ -0,0 +1,70 @@
+@comment $NetBSD$
+bin/spid-compliant-certificates
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/spid_compliant_certificates/__init__.py
+${PYSITELIB}/spid_compliant_certificates/__init__.pyc
+${PYSITELIB}/spid_compliant_certificates/__init__.pyo
+${PYSITELIB}/spid_compliant_certificates/commons/__init__.py
+${PYSITELIB}/spid_compliant_certificates/commons/__init__.pyc
+${PYSITELIB}/spid_compliant_certificates/commons/__init__.pyo
+${PYSITELIB}/spid_compliant_certificates/commons/logger.py
+${PYSITELIB}/spid_compliant_certificates/commons/logger.pyc
+${PYSITELIB}/spid_compliant_certificates/commons/logger.pyo
+${PYSITELIB}/spid_compliant_certificates/generator/__init__.py
+${PYSITELIB}/spid_compliant_certificates/generator/__init__.pyc
+${PYSITELIB}/spid_compliant_certificates/generator/__init__.pyo
+${PYSITELIB}/spid_compliant_certificates/generator/generate.py
+${PYSITELIB}/spid_compliant_certificates/generator/generate.pyc
+${PYSITELIB}/spid_compliant_certificates/generator/generate.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/__init__.py
+${PYSITELIB}/spid_compliant_certificates/validator/__init__.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/__init__.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/__init__.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/__init__.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/__init__.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/basic_constraints.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/basic_constraints.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/basic_constraints.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/certificate_policies.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/certificate_policies.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/certificate_policies.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/custom_oid.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/custom_oid.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/custom_oid.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/digest_algorithm.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/digest_algorithm.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/digest_algorithm.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/key_type_and_size.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/key_type_and_size.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/key_type_and_size.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/key_usage.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/key_usage.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/key_usage.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/checks/subject_dn.py
+${PYSITELIB}/spid_compliant_certificates/validator/checks/subject_dn.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/checks/subject_dn.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/report.py
+${PYSITELIB}/spid_compliant_certificates/validator/report.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/report.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/__init__.py
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/__init__.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/__init__.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/base.py
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/base.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/base.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/private_sector.py
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/private_sector.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/private_sector.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/public_sector.py
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/public_sector.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/test_cases/public_sector.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/utils.py
+${PYSITELIB}/spid_compliant_certificates/validator/utils.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/utils.pyo
+${PYSITELIB}/spid_compliant_certificates/validator/validate.py
+${PYSITELIB}/spid_compliant_certificates/validator/validate.pyc
+${PYSITELIB}/spid_compliant_certificates/validator/validate.pyo
diff --git a/spid-compliant-certificates/distinfo b/spid-compliant-certificates/distinfo
new file mode 100644
index 0000000000..b73c6e887c
--- /dev/null
+++ b/spid-compliant-certificates/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (spid_compliant_certificates-0.2.tar.gz) = 6199b1167b2fbcc1199f09778330ed8b544a6a09
+RMD160 (spid_compliant_certificates-0.2.tar.gz) = 464f83b6e14f48ad700b0e77268167c775fca247
+SHA512 (spid_compliant_certificates-0.2.tar.gz) = 3178f34851cd0b073c318ff123a5be2ed0e5194d2f72a1f9cd336a953b1bebc691bd2577271e78fb088e8596de249574d7ffca9a69aa864e2441fbf0ef1a233c
+Size (spid_compliant_certificates-0.2.tar.gz) = 17377 bytes
+SHA1 (patch-setup.py) = bbcacf8fc7e8927306deaaaf241c4afe6c48c196
diff --git a/spid-compliant-certificates/patches/patch-setup.py b/spid-compliant-certificates/patches/patch-setup.py
new file mode 100644
index 0000000000..257d7cad4e
--- /dev/null
+++ b/spid-compliant-certificates/patches/patch-setup.py
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Explicitly add requirements (the package does not contain any requirements.txt so
+get_requirements() will fail).
+
+The cryptography dependency is relaxed because cryptography-3.4.7 or
+newer are not yet present in pkgsrc.
+
+--- setup.py.orig 2021-04-26 11:48:30.000000000 +0000
++++ setup.py
+@@ -58,7 +58,13 @@ setup(
+ url='https://github.com/italia/spid-compliant-certificates-python',
+
+ packages=find_packages(exclude=['bin']),
+- install_requires=get_requirements(),
++ install_requires=[
++ "cryptography>=3.3.0",
++ "iso3166>=1.0.1"
++ "packaging>=20.9"
++ "requests>=2.25.1"
++ "ruamel.yaml>=0.17.4",
++ ],
+ scripts=['bin/spid-compliant-certificates'],
+ python_requires='>=3.6',
+ )
Home |
Main Index |
Thread Index |
Old Index