From d79d625f22b05eb44535961f634c5d1bc485931a Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 10:27:21 -0400 Subject: [PATCH 01/11] New package: python3-darkdetect-0.6.0 --- srcpkgs/python3-darkdetect/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-darkdetect/template diff --git a/srcpkgs/python3-darkdetect/template b/srcpkgs/python3-darkdetect/template new file mode 100644 index 000000000000..b9e0f32190c9 --- /dev/null +++ b/srcpkgs/python3-darkdetect/template @@ -0,0 +1,18 @@ +# Template file for 'python3-darkdetect' +pkgname=python3-darkdetect +version=0.6.0 +revision=1 +wrksrc="darkdetect-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Detect OS Dark Mode from Python" +maintainer="Joel Beckmeyer " +license="BSD-3-Clause" +homepage="http://github.com/albertosottile/darkdetect" +distfiles="${PYPI_SITE}/d/darkdetect/darkdetect-${version}.tar.gz" +checksum=7993275b537b4579ba2eee7673b0b95783f99c7ddb82a9f90dc077a379b427f1 +make_check=no # no tests included + +post_install() { + vlicense LICENSE +} From 67e324a1bfec49262a7ab8c77b479361cd9f8054 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 10:22:37 -0400 Subject: [PATCH 02/11] New package: python3-gaphas-3.6.0 --- srcpkgs/python3-gaphas/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/python3-gaphas/template diff --git a/srcpkgs/python3-gaphas/template b/srcpkgs/python3-gaphas/template new file mode 100644 index 000000000000..b4fb4dca7968 --- /dev/null +++ b/srcpkgs/python3-gaphas/template @@ -0,0 +1,16 @@ +# Template file for 'python3-gaphas' +pkgname=python3-gaphas +version=3.6.0 +revision=1 +wrksrc="gaphas-${version}" +build_style=python3-pep517 +hostmakedepends="python3-poetry-core" +depends="python3-gobject python3-cairo" +checkdepends="python3-pytest xvfb-run gtk4 $depends" +short_desc="GTK+ diagramming widget library for Python" +maintainer="Joel Beckmeyer " +license="Apache-2.0" +homepage="https://gaphas.readthedocs.io" +distfiles="https://github.com/gaphor/gaphas/archive/${version}.tar.gz" +checksum=96f1be036cf5155dc15508257acf3663cd3ec12154f6ce5011aead10e80c40d1 +make_check_pre="xvfb-run" From cc9364bcc2c0bccc6324b2e81dde5de8dcba357e Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 11:17:26 -0400 Subject: [PATCH 03/11] New package: python3-flit_scm-1.5.0 --- .../patches/relax_version_constraints.patch | 39 +++++++++++++++++++ srcpkgs/python3-flit_scm/template | 19 +++++++++ 2 files changed, 58 insertions(+) create mode 100644 srcpkgs/python3-flit_scm/patches/relax_version_constraints.patch create mode 100644 srcpkgs/python3-flit_scm/template diff --git a/srcpkgs/python3-flit_scm/patches/relax_version_constraints.patch b/srcpkgs/python3-flit_scm/patches/relax_version_constraints.patch new file mode 100644 index 000000000000..658d1e950276 --- /dev/null +++ b/srcpkgs/python3-flit_scm/patches/relax_version_constraints.patch @@ -0,0 +1,39 @@ +From ccbb547dea83e13799946b6bf639ea1c678e3ed0 Mon Sep 17 00:00:00 2001 +From: Padraic Fanning +Date: Sat, 21 May 2022 22:18:50 -0400 +Subject: [PATCH] Relax version constraints + +This resolves #5. +--- + pyproject.toml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index e331fb4..08dcf6e 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -18,8 +18,8 @@ classifiers = [ + "Topic :: Software Development :: Build Tools", + ] + dependencies = [ +- "flit-core==3.5.0", +- "setuptools_scm==6.4.2", ++ "flit-core~=3.5", ++ "setuptools_scm~=6.4", + "tomli>=2,<3", + ] + dynamic = ["version"] +@@ -33,8 +33,8 @@ repository = "https://gitlab.com/WillDaSilva/flit_scm" + + [build-system] + requires = [ +- "flit-core==3.5.0", +- "setuptools_scm==6.4.2", ++ "flit-core~=3.5", ++ "setuptools_scm~=6.4", + "tomli>=2,<3", + ] + build-backend = "flit_scm:buildapi" +-- +GitLab + diff --git a/srcpkgs/python3-flit_scm/template b/srcpkgs/python3-flit_scm/template new file mode 100644 index 000000000000..64049c3d278e --- /dev/null +++ b/srcpkgs/python3-flit_scm/template @@ -0,0 +1,19 @@ +# Template file for 'python3-flit_scm' +pkgname=python3-flit_scm +version=1.5.0 +revision=1 +wrksrc="flit_scm-${version}" +build_style=python3-pep517 +hostmakedepends="python3-flit_core python3-setuptools_scm python3-tomli" +depends="$hostmakedepends" +short_desc="Setuptools_scm to version, flit to build - PEP 518 build backend" +maintainer="Joel Beckmeyer " +license="MIT" +homepage="https://gitlab.com/WillDaSilva/flit_scm" +distfiles="${PYPI_SITE}/f/flit_scm/flit_scm-${version}.tar.gz" +checksum=fd0c704375b4424152caced0584cebe4131ccdc236a239dd1a055a80ee935f70 +make_check=no # no tests specified + +post_install() { + vlicense LICENSE +} From 7719290c014015ae9e1f9fbff72d30c0e141ba0f Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 11:23:14 -0400 Subject: [PATCH 04/11] New package: python3-exceptiongroup-1.0.0rc7 --- srcpkgs/python3-exceptiongroup/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-exceptiongroup/template diff --git a/srcpkgs/python3-exceptiongroup/template b/srcpkgs/python3-exceptiongroup/template new file mode 100644 index 000000000000..c45d77549236 --- /dev/null +++ b/srcpkgs/python3-exceptiongroup/template @@ -0,0 +1,19 @@ +# Template file for 'python3-exceptiongroup' +pkgname=python3-exceptiongroup +version=1.0.0rc7 +revision=1 +wrksrc="exceptiongroup-${version}" +build_style=python3-pep517 +hostmakedepends="python3-flit_scm" +short_desc="Backport of PEP 654 (exception groups)" +maintainer="Joel Beckmeyer " +license="MIT,PSF-2.0" +homepage="https://github.com/agronholm/exceptiongroup" +changelog="https://raw.githubusercontent.com/agronholm/exceptiongroup/main/CHANGES.rst" +distfiles="${PYPI_SITE}/e/exceptiongroup/exceptiongroup-${version}.tar.gz" +checksum=2019e6e9d6ef84ff65c5c7c451b75802c662d53bcb124abf47ad118d39f9a1ca +make_check=no # no tests included + +post_install() { + vlicense LICENSE +} From 87f214fd315edf19f456622b2d639e74c01eabe9 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 09:55:02 -0400 Subject: [PATCH 05/11] New package: python3-generic-1.1.0 --- srcpkgs/python3-generic/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-generic/template diff --git a/srcpkgs/python3-generic/template b/srcpkgs/python3-generic/template new file mode 100644 index 000000000000..a5bc6b73d197 --- /dev/null +++ b/srcpkgs/python3-generic/template @@ -0,0 +1,19 @@ +# Template file for 'python3-generic' +pkgname=python3-generic +version=1.1.0 +revision=1 +wrksrc="generic-${version}" +build_style=python3-pep517 +hostmakedepends="python3-poetry-core" +depends="python3-exceptiongroup" +checkdepends="python3-pytest $depends" +short_desc="Generic programming library for Python" +maintainer="Joel Beckmeyer " +license="BSD-3-Clause-Modification" +homepage="https://generic.readthedocs.io" +distfiles="https://github.com/gaphor/generic/archive/${version}.tar.gz" +checksum=8628d1bce4044e7664c149f785d7ad17a388e96c648ee09aef39d73578d52943 + +post_install() { + vlicense LICENSE.txt +} From aef9d8f77b73d608868da6c645b97d5f67041cdf Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 11:42:45 -0400 Subject: [PATCH 06/11] New package: python3-tinycss2-1.1.1 --- srcpkgs/python3-tinycss2/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-tinycss2/template diff --git a/srcpkgs/python3-tinycss2/template b/srcpkgs/python3-tinycss2/template new file mode 100644 index 000000000000..b9e72e405974 --- /dev/null +++ b/srcpkgs/python3-tinycss2/template @@ -0,0 +1,23 @@ +# Template file for 'python3-tinycss2' +pkgname=python3-tinycss2 +version=1.1.1 +revision=1 +wrksrc=tinycss2-${version} +build_style=python3-pep517 +hostmakedepends="python3-flit_core python3-webencodings" +depends="python3-webencodings" +checkdepends="python3-pytest" +short_desc="Tiny CSS parser" +maintainer="Joel Beckmeyer " +license="BSD-3-Clause" +homepage="https://www.courtbouillon.org/tinycss2" +distfiles="${PYPI_SITE}/t/tinycss2/tinycss2-${version}.tar.gz" +checksum=b2e44dd8883c360c35dd0d1b5aad0b610e5156c2cb3b33434634e539ead9d8bf + +pre_check() { + vsed -e '/addopts/d' -i pyproject.toml +} + +post_install() { + vlicense LICENSE +} From be26f887f8e338056df271d0fd130b9a05208235 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 12:52:48 -0400 Subject: [PATCH 07/11] New package: python3-xdoctest-1.0.0 --- srcpkgs/python3-xdoctest/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/python3-xdoctest/template diff --git a/srcpkgs/python3-xdoctest/template b/srcpkgs/python3-xdoctest/template new file mode 100644 index 000000000000..ac7d1445b08d --- /dev/null +++ b/srcpkgs/python3-xdoctest/template @@ -0,0 +1,16 @@ +# Template file for 'python3-xdoctest' +pkgname=python3-xdoctest +version=1.0.0 +revision=1 +wrksrc="xdoctest-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-six" +checkdepends="python3-pytest $depends" +short_desc="Doctest with AST instead of REGEX (with pytest plugin integration)" +maintainer="Joel Beckmeyer " +license="Apache-2.0" +homepage="https://github.com/Erotemic/xdoctest" +distfiles="https://github.com/gaphor/xdoctest/archive/${version}.tar.gz" +distfiles="${PYPI_SITE}/x/xdoctest/xdoctest-${version}.tar.gz" +checksum=7ebba7e71457e6e7cf86c463699575e52b1c9cc32ee2ee5e72256d6cd3aaeb2d From a76987dc8b472905677fa1d98d2630071deb0980 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 23 May 2022 10:39:17 -0400 Subject: [PATCH 08/11] New package: gaphor-2.10.0 --- srcpkgs/gaphor/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/gaphor/template diff --git a/srcpkgs/gaphor/template b/srcpkgs/gaphor/template new file mode 100644 index 000000000000..6f14aa39aa6e --- /dev/null +++ b/srcpkgs/gaphor/template @@ -0,0 +1,22 @@ +# Template file for 'gaphor' +pkgname=gaphor +version=2.10.0 +revision=1 +wrksrc="gaphor-${version}" +build_style=python3-pep517 +hostmakedepends="python3-poetry-core" +depends="python3-cairo python3-gobject python3-gaphas python3-generic + python3-tinycss2 python3-jedi python3-darkdetect" +checkdepends="python3-pytest python3-pytest-timeout python3-hypothesis xvfb-run + gtksourceview4 python3-Sphinx $depends" +short_desc="Simple modeling tool written in Python" +maintainer="Joel Beckmeyer " +license="Apache-2.0" +homepage="https://gaphor.org" +distfiles="https://github.com/gaphor/gaphor/archive/${version}.tar.gz" +checksum=cb2255f9fb31e367999a9e07d6ac814551f34c6d2fb3ffcce5aa5764bc2ffe7f +make_check_pre="xvfb-run" + +pre_check() { + vsed -e '/addopts/d' -i pyproject.toml +} From 7db1146cac880214c346041fec430ab171d0ecaf Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Mon, 23 May 2022 09:42:51 -0500 Subject: [PATCH 09/11] python3-httpcore: update to 0.15.0. --- srcpkgs/python3-httpcore/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python3-httpcore/template b/srcpkgs/python3-httpcore/template index 99d7b420fe7c..5491bf7c0cd0 100644 --- a/srcpkgs/python3-httpcore/template +++ b/srcpkgs/python3-httpcore/template @@ -1,6 +1,6 @@ # Template file for 'python3-httpcore' pkgname=python3-httpcore -version=0.14.7 +version=0.15.0 revision=1 wrksrc="httpcore-$version" build_style=python3-module @@ -12,7 +12,7 @@ license="BSD-3-Clause" homepage="https://www.encode.io/httpcore/" changelog="https://raw.githubusercontent.com/encode/httpcore/master/CHANGELOG.md" distfiles="https://github.com/encode/httpcore/archive/refs/tags/$version.tar.gz" -checksum=7f5736b3d1a2382d3b137c8f77d19229f3742789447ef1c1a55bb95918c02277 +checksum=e5458b6342fb6a0cdd58b86c1336516b90ad8879dedc24a9667f9fdf7b4081ea make_check=no # at least trustme python module is not packaged post_install() { From 8ad68450189b94a720835f694bb422113e67717b Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Sat, 26 Mar 2022 20:55:52 -0400 Subject: [PATCH 10/11] New package: vaultwarden-web-2.28.1 --- srcpkgs/vaultwarden-web/patches/v2.28.0.patch | 271 ++++++++++++++++++ srcpkgs/vaultwarden-web/template | 34 +++ 2 files changed, 305 insertions(+) create mode 100644 srcpkgs/vaultwarden-web/patches/v2.28.0.patch create mode 100644 srcpkgs/vaultwarden-web/template diff --git a/srcpkgs/vaultwarden-web/patches/v2.28.0.patch b/srcpkgs/vaultwarden-web/patches/v2.28.0.patch new file mode 100644 index 000000000000..77ae1affb2b4 --- /dev/null +++ b/srcpkgs/vaultwarden-web/patches/v2.28.0.patch @@ -0,0 +1,271 @@ +Submodule jslib contains modified content +diff --git a/jslib/angular/src/components/register.component.ts b/jslib/angular/src/components/register.component.ts +index d4b99e17..c1626200 100644 +--- a/jslib/angular/src/components/register.component.ts ++++ b/jslib/angular/src/components/register.component.ts +@@ -28,7 +28,7 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn + formPromise: Promise; + masterPasswordScore: number; + referenceData: ReferenceEventRequest; +- showTerms = true; ++ showTerms = false; + acceptPolicies = false; + + protected successRoute = "login"; +@@ -47,7 +47,7 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn + protected logService: LogService + ) { + super(environmentService, i18nService, platformUtilsService); +- this.showTerms = !platformUtilsService.isSelfHost(); ++ this.showTerms = false; + } + + async ngOnInit() { +@@ -85,6 +85,15 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn + } + + async submit() { ++ if (typeof crypto.subtle === 'undefined') { ++ this.platformUtilsService.showToast( ++ "error", ++ "This browser requires HTTPS to use the web vault", ++ "Check the Vaultwarden wiki for details on how to enable it" ++ ); ++ return; ++ } ++ + if (!this.acceptPolicies && this.showTerms) { + this.platformUtilsService.showToast( + "error", +diff --git a/src/404.html b/src/404.html +index 6cf5e363..54d11495 100644 +--- a/src/404.html ++++ b/src/404.html +@@ -42,11 +42,10 @@ + +

+

+- You can return to the web vault, check our +- status page or +- contact us. ++ You can return to the web vault, or ++ contact us. +

+ +- ++ + + +diff --git a/src/app/app.component.ts b/src/app/app.component.ts +index cd94408f..56bc4bdb 100644 +--- a/src/app/app.component.ts ++++ b/src/app/app.component.ts +@@ -159,6 +159,10 @@ export class AppComponent implements OnDestroy, OnInit { + break; + } + case "showToast": ++ if (typeof message.text === "string" && typeof crypto.subtle === 'undefined') { ++ message.title="This browser requires HTTPS to use the web vault"; ++ message.text="Check the Vaultwarden wiki for details on how to enable it"; ++ } + this.showToast(message); + break; + case "setFullWidth": +diff --git a/src/app/layouts/footer.component.html b/src/app/layouts/footer.component.html +index 8601e123..22a0248b 100644 +--- a/src/app/layouts/footer.component.html ++++ b/src/app/layouts/footer.component.html +@@ -1,6 +1,6 @@ +