From 00c6844b405eaa8f275241c5bf3b68a8f4b30b23 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 10:18:21 +1100 Subject: [PATCH 1/9] python3-h2: update to 4.1.0. --- srcpkgs/python3-h2/template | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-h2/template b/srcpkgs/python3-h2/template index 29668e4cec4f..24cd2b540bd8 100644 --- a/srcpkgs/python3-h2/template +++ b/srcpkgs/python3-h2/template @@ -1,17 +1,18 @@ # Template file for 'python3-h2' pkgname=python3-h2 -version=4.0.0 -revision=2 +version=4.1.0 +revision=1 wrksrc="h2-${version}" build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3 python3-hpack python3-hyperframe" +depends="python3-hpack python3-hyperframe" +checkdepends="${depends} python3-hypothesis python3-pytest" short_desc="HTTP/2 State-Machine based protocol implementation (Python3)" maintainer="Orphaned " license="MIT" homepage="https://github.com/python-hyper/h2" distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=78753b52cebb63f87097c9a5f969004a61ec4a41f967e41dcc287e26dd9b4143 +checksum=4a17b1ec23152bd94ab6260ea61f6cc02de92bd7c36762f13e34fdecea454b41 post_install() { vlicense LICENSE From e34f9b5017db142e54dc850c3ef74d21daf4c7c9 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 10:25:29 +1100 Subject: [PATCH 2/9] python3-passlib: update to 1.7.4. --- srcpkgs/python3-passlib/template | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-passlib/template b/srcpkgs/python3-passlib/template index 86a22fd6f01d..78a24bbc0a8b 100644 --- a/srcpkgs/python3-passlib/template +++ b/srcpkgs/python3-passlib/template @@ -1,17 +1,18 @@ # Template file for 'python3-passlib' pkgname=python3-passlib -version=1.7.1 -revision=6 +version=1.7.4 +revision=1 wrksrc="passlib-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3" +checkdepends="python3-bcrypt python3-nose" short_desc="Comprehensive password hashing framework for Python3" maintainer="Alin Dobre " license="BSD-3-Clause" -homepage="https://bitbucket.org/ecollins/passlib" +homepage="https://passlib.readthedocs.io" distfiles="${PYPI_SITE}/p/passlib/passlib-${version}.tar.gz" -checksum=3d948f64138c25633613f303bcc471126eae67c04d5e3f6b7b8ce6242f8653e0 +checksum=defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04 post_install() { vlicense LICENSE From 951164c5bdad2ecf0d04273550c0a3abb35668a5 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 10:44:00 +1100 Subject: [PATCH 3/9] New package: python3-asgiref-3.4.1 --- srcpkgs/python3-asgiref/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-asgiref/template diff --git a/srcpkgs/python3-asgiref/template b/srcpkgs/python3-asgiref/template new file mode 100644 index 000000000000..4af692950534 --- /dev/null +++ b/srcpkgs/python3-asgiref/template @@ -0,0 +1,19 @@ +# Template file for 'python3-asgiref' +pkgname=python3-asgiref +version=3.4.1 +revision=1 +wrksrc="asgiref-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-pytest python3-pytest-asyncio" +short_desc="ASGI base libraries" +maintainer="Evgeny Ermakov " +license="BSD-3-Clause" +homepage="https://github.com/django/asgiref" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=6ddea3b9cab652c4efb19d0eccaff44eab1c42ef7589c0963654eaaaa8829570 + +post_install() { + vlicense LICENSE +} From a4946cb936b4315af1f4f3e202104c2873a139ec Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 10:47:28 +1100 Subject: [PATCH 4/9] New package: python3-kaitaistruct-0.9 --- srcpkgs/python3-kaitaistruct/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-kaitaistruct/template diff --git a/srcpkgs/python3-kaitaistruct/template b/srcpkgs/python3-kaitaistruct/template new file mode 100644 index 000000000000..b3bce973689a --- /dev/null +++ b/srcpkgs/python3-kaitaistruct/template @@ -0,0 +1,19 @@ +# Template file for 'python3-kaitaistruct' +pkgname=python3-kaitaistruct +version=0.9 +revision=1 +wrksrc="kaitai_struct_python_runtime-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-wheel" +depends="python3" +short_desc="Kaitai Struct API for Python" +maintainer="Evgeny Ermakov " +license="MIT" +homepage="https://kaitai.io" +distfiles="https://github.com/kaitai-io/kaitai_struct_python_runtime/archive/${version}.tar.gz" +checksum=d21207d17603d87f263c8adcd45235ce22d154ba6faba0945e4f1a9d8d95e7e9 +make_check=no # Package ships no tests + +post_install() { + vlicense LICENSE +} From 64924daf6f5415b15c88c4faab27c03c8e0d0ee3 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 10:29:13 +1100 Subject: [PATCH 5/9] New package: python3-Arpeggio-1.10.2 --- srcpkgs/python3-Arpeggio/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/python3-Arpeggio/template diff --git a/srcpkgs/python3-Arpeggio/template b/srcpkgs/python3-Arpeggio/template new file mode 100644 index 000000000000..94c472262b5a --- /dev/null +++ b/srcpkgs/python3-Arpeggio/template @@ -0,0 +1,24 @@ +# Template file for 'python3-Arpeggio' +pkgname=python3-Arpeggio +version=1.10.2 +revision=1 +wrksrc="Arpeggio-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-wheel" +depends="python3" +checkdepends="python3-pytest" +short_desc="Recursive descent parser with memoization based on PEG grammars" +maintainer="Evgeny Ermakov " +license="MIT" +homepage="https://github.com/textX/Arpeggio" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=edb463a27bf6ac53819c4ad810e543cc8656ec89eed5943ba9e310bb44e197f4 + +post_patch() { + # Package does not *need* pytest-runner to build, and Void doesn't have it + vsed -e '/pytest-runner/d' -i setup.cfg +} + +post_install() { + vlicense LICENSE +} From c614b512415fe51916b1b975fa5c22ae913bd2f4 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 10:55:22 +1100 Subject: [PATCH 6/9] New package: python3-publicsuffix2-2019.12.21 --- srcpkgs/python3-publicsuffix2/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-publicsuffix2/template diff --git a/srcpkgs/python3-publicsuffix2/template b/srcpkgs/python3-publicsuffix2/template new file mode 100644 index 000000000000..0fe2a1e19fec --- /dev/null +++ b/srcpkgs/python3-publicsuffix2/template @@ -0,0 +1,19 @@ +# Template file for 'python3-publicsuffix2' +pkgname=python3-publicsuffix2 +version=2019.12.21 +revision=1 +wrksrc="python-publicsuffix2-release-2.${version//./-}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-pip python3-wheel" +depends="python3" +checkdepends="python3-requests" +short_desc="Get a public suffix for a domain name using the Public Suffix List" +maintainer="Evgeny Ermakov " +license="MIT, MPL-2.0" +homepage="https://github.com/nexB/python-publicsuffix2" +distfiles="${homepage}/archive/release-2.${version//./-}.tar.gz" +checksum=b4ef022fccd7b4968151af208b0f890e55c00b24892a1a826b2b7a381215bafa + +post_install() { + vlicense publicsuffix2.LICENSE +} From ee13cb62bf7f90fc939bfa9c36abffe0d5510489 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 11:01:00 +1100 Subject: [PATCH 7/9] New package: python3-zstandard-0.15.2 --- srcpkgs/python3-zstandard/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/python3-zstandard/template diff --git a/srcpkgs/python3-zstandard/template b/srcpkgs/python3-zstandard/template new file mode 100644 index 000000000000..d3cd173b53e1 --- /dev/null +++ b/srcpkgs/python3-zstandard/template @@ -0,0 +1,28 @@ +# Template file for 'python3-zstandard' +pkgname=python3-zstandard +version=0.15.2 +revision=1 +wrksrc="python-zstandard-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel" +depends="python3" +checkdepends="python3-hypothesis" +short_desc="Python bindings to the Zstandard (zstd) compression library" +maintainer="Evgeny Ermakov " +license="BSD-3-Clause" +homepage="https://github.com/indygreg/python-zstandard" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=5f947c9b0a2e5b3831bff2e7132cfbd7cc22ea8a400da2304e0c089d5c22a876 + +pre_check() { + # The skipped test ignored due to failure, see: + # https://github.com/indygreg/python-zstandard/issues/147#issuecomment-874278901 + if [ "${XBPS_TARGET_MACHINE%-musl}" = i686 ]; then + vsed -i -e '/def test_estimated_compression_context_size/s/test//' tests/test_data_structures*.py + fi +} + +post_install() { + vlicense LICENSE +} From 26a3d0246a5dfa41db80d86b3908300839daa33f Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 11:01:30 +1100 Subject: [PATCH 8/9] New package: python3-parver-0.3.1 --- srcpkgs/python3-parver/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-parver/template diff --git a/srcpkgs/python3-parver/template b/srcpkgs/python3-parver/template new file mode 100644 index 000000000000..68800130d269 --- /dev/null +++ b/srcpkgs/python3-parver/template @@ -0,0 +1,19 @@ +# Template file for 'python3-parver' +pkgname=python3-parver +version=0.3.1 +revision=1 +wrksrc="parver-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-Arpeggio python3-attrs python3-six" +checkdepends="${depends} python3-hypothesis python3-pretend python3-pytest" +short_desc="Allows parsing and manipulation of PEP 440 version numbers" +maintainer="Evgeny Ermakov " +license="MIT" +homepage="https://github.com/RazerM/parver" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=db9cb60d6fa8fa5fe88af7016c26846a297dec8ce30f4966f29edf1351e4a544 + +post_install() { + vlicense LICENSE +} From ddcde34552c99b1ec20ea3a957d40ff3b81f74c9 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 11:01:44 +1100 Subject: [PATCH 9/9] New package: mitmproxy-7.0.4 --- srcpkgs/mitmproxy/template | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 srcpkgs/mitmproxy/template diff --git a/srcpkgs/mitmproxy/template b/srcpkgs/mitmproxy/template new file mode 100644 index 000000000000..78f54b82c04d --- /dev/null +++ b/srcpkgs/mitmproxy/template @@ -0,0 +1,36 @@ +# Template file for 'mitmproxy' +pkgname=mitmproxy +version=7.0.4 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-Brotli python3-Flask python3-asgiref python3-blinker python3-certifi + python3-click python3-cryptography python3-h11 python3-h2 python3-hyperframe python3-kaitaistruct + python3-ldap3 python3-msgpack python3-openssl python3-parsing python3-passlib python3-protobuf + python3-publicsuffix2 python3-pyperclip python3-pyzstd python3-ruamel.yaml python3-sortedcontainers + python3-tornado python3-urwid python3-wsproto python3-zstandard" +checkdepends="${depends} python3-hypothesis python3-parver + python3-pytest-asyncio python3-pytest-cov python3-pytest-timeout python3-requests" +short_desc="Interactive TLS-capable intercepting HTTP proxy" +maintainer="Evgeny Ermakov " +license="MIT" +homepage="https://mitmproxy.org" +distfiles="https://github.com/mitmproxy/mitmproxy/archive/v${version}.tar.gz" +checksum=8728d18c69053f0043acebcdabf46f2eeea51f0f0b60c528e1d356cf48ed2ca2 + +_skip="(test_get_version)" # This test fails without a git repository + +if [ ${XBPS_TARGET_MACHINE%-musl} = "i686" ]; then + _skip+="or(test_refresh)" +fi + +make_check_args="-k not($_skip)" + +post_patch() { + # See https://github.com/mitmproxy/mitmproxy/commit/68bce90754a546d15ea9a5fa75ff324da3a18086 + vsed -i -e 's cryptography>=3.3,<3.5 cryptography>=36,<37 ' setup.py +} + +post_install() { + vlicense LICENSE +}