From e5de17c71fe895827e18028e78057ea72fefc0f6 Mon Sep 17 00:00:00 2001 From: c0m4r Date: Thu, 1 Feb 2024 18:32:38 +0100 Subject: [PATCH] New package: python3-safety-3.0.1 --- srcpkgs/python3-Authlib/template | 21 ++++++++++++++++ srcpkgs/python3-Flask-SQLAlchemy/template | 29 +++++++++++++++++++++++ srcpkgs/python3-dparse/template | 18 ++++++++++++++ srcpkgs/python3-safety/template | 23 ++++++++++++++++++ srcpkgs/python3-safety_schemas/template | 18 ++++++++++++++ srcpkgs/python3-typer/template | 27 +++++++++++++++++++++ 6 files changed, 136 insertions(+) create mode 100644 srcpkgs/python3-Authlib/template create mode 100644 srcpkgs/python3-Flask-SQLAlchemy/template create mode 100644 srcpkgs/python3-dparse/template create mode 100644 srcpkgs/python3-safety/template create mode 100644 srcpkgs/python3-safety_schemas/template create mode 100644 srcpkgs/python3-typer/template diff --git a/srcpkgs/python3-Authlib/template b/srcpkgs/python3-Authlib/template new file mode 100644 index 0000000000000..34172e0b9a192 --- /dev/null +++ b/srcpkgs/python3-Authlib/template @@ -0,0 +1,21 @@ +# Template file for 'python3-Authlib' +pkgname=python3-Authlib +version=1.3.0 +revision=1 +build_style=python3-module +make_check_args="--ignore tests/django --ignore tests/clients + --ignore tests/jose/test_chacha20.py" +hostmakedepends="python3-setuptools python3-wheel" +depends="python3 python3-cryptography" +checkdepends="python3-coverage python3-cryptography python3-Flask-SQLAlchemy + python3-httpx python3-pycryptodome python3-pytest python3-pytest-asyncio python3-starlette" +short_desc="Python library for building OAuth, OpenID Connect clients and servers" +maintainer="c0m4r " +license="BSD-3-Clause" +homepage="https://github.com/lepture/authlib" +distfiles="https://github.com/lepture/authlib/archive/refs/tags/v${version}.tar.gz" +checksum=6ec01011526b5a3ca0bba6e595ce4fe4c4d0d2f79f36731778c21741a7c0d46a + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-Flask-SQLAlchemy/template b/srcpkgs/python3-Flask-SQLAlchemy/template new file mode 100644 index 0000000000000..9cba554fcb331 --- /dev/null +++ b/srcpkgs/python3-Flask-SQLAlchemy/template @@ -0,0 +1,29 @@ +# Template file for 'python3-Flask-SQLAlchemy' +pkgname=python3-Flask-SQLAlchemy +version=3.1.1 +revision=1 +build_style=python3-pep517 +make_check_args="--deselect tests/test_model.py::test_abstractmodel[Model] + --deselect tests/test_model.py::test_abstractmodel[model_class1] + --deselect tests/test_model.py::test_abstractmodel[model_class2] + --deselect tests/test_model.py::test_abstractmodel[model_class3] + --deselect tests/test_model.py::test_abstractmodel[model_class4] + --deselect tests/test_model.py::test_mixinmodel[Model] + --deselect tests/test_model.py::test_mixinmodel[model_class1] + --deselect tests/test_model.py::test_mixinmodel[model_class2] + --deselect tests/test_model.py::test_mixinmodel[model_class3] + --deselect tests/test_model.py::test_mixinmodel[model_class4]" +hostmakedepends="python3-flit_core python3-SQLAlchemy2" +depends="python3-Flask python3-SQLAlchemy2" +checkdepends="python3-pytest $depends" +short_desc="Add SQLAlchemy support to your Flask application" +maintainer="c0m4r " +license="BSD-3-Clause" +homepage="https://github.com/pallets-eco/flask-sqlalchemy" +changelog="https://raw.githubusercontent.com/pallets-eco/flask-sqlalchemy/main/CHANGES.rst" +distfiles="https://github.com/pallets-eco/flask-sqlalchemy/archive/refs/tags/${version}.tar.gz" +checksum=1989afdf046a935bd1ab98dbd9a2d68e5ba1c69d0cd3e3646df0876bf8d997d3 + +post_install() { + vlicense LICENSE.rst +} diff --git a/srcpkgs/python3-dparse/template b/srcpkgs/python3-dparse/template new file mode 100644 index 0000000000000..ae0aea85213ea --- /dev/null +++ b/srcpkgs/python3-dparse/template @@ -0,0 +1,18 @@ +# Template file for 'python3-dparse' +pkgname=python3-dparse +version=0.6.4b0 +revision=1 +build_style=python3-pep517 +hostmakedepends="hatchling" +depends="python3 python3-packaging python3-tomli python3-yaml" +checkdepends="python3-pytest python3-pytest-cov ${depends}" +short_desc="Parser for Python dependency files" +maintainer="c0m4r " +license="MIT" +homepage="https://github.com/pyupio/dparse" +distfiles="https://github.com/pyupio/dparse/archive/refs/tags/${version}.tar.gz" +checksum=36e0ab5273de5b42b6175c4ea7e1207fb33e4899faf1a945bb531c580987b28a + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-safety/template b/srcpkgs/python3-safety/template new file mode 100644 index 0000000000000..9fcd206c5e95e --- /dev/null +++ b/srcpkgs/python3-safety/template @@ -0,0 +1,23 @@ +# Template file for 'python3-safety' +pkgname=python3-safety +version=3.0.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools" +makedepends="python3-devel python3-wheel" +# missing: python3-safety_schemas>=0.0.1 +depends="python3 python3-Authlib python3-click python3-dparse python3-Jinja2 + python3-marshmallow python3-urllib3 python3-packaging python3-requests + python3-ruamel.yaml python3-rich python3-pydantic python3-safety_schemas + python3-typer python3-typing_extensions" +checkdepends="python3-pytest $depends" +short_desc="Checks Python dependencies for known security vulnerabilities" +maintainer="c0m4r " +license="MIT" +homepage="https://github.com/pyupio/safety" +distfiles="${PYPI_SITE}/s/safety/safety-${version}.tar.gz" +checksum=1f2000f03652f3a0bfc67f8fd1e98bc5723ccb76e15cb1bdd68545c3d803df01 + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-safety_schemas/template b/srcpkgs/python3-safety_schemas/template new file mode 100644 index 0000000000000..9f90605fb6c3a --- /dev/null +++ b/srcpkgs/python3-safety_schemas/template @@ -0,0 +1,18 @@ +# Template file for 'python3-safety_schemas' +pkgname=python3-safety_schemas +version=0.0.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-poetry-core" +depends="python3-dparse python3-packaging python3-pydantic python3-ruamel.yaml + python3-typing_extensions" +short_desc="Schemas for Safety CLI" +maintainer="c0m4r " +license="MIT" +homepage="https://pypi.org/project/safety-schemas" +distfiles="${PYPI_SITE}/s/safety-schemas/safety_schemas-${version}.tar.gz" +checksum=de56d04a9badbbab8b360326d1a598d68b180b766eb04d3296abaee4c7ab431c + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-typer/template b/srcpkgs/python3-typer/template new file mode 100644 index 0000000000000..c2b9e16f75023 --- /dev/null +++ b/srcpkgs/python3-typer/template @@ -0,0 +1,27 @@ +# Template file for 'python3-typer' +pkgname=python3-typer +version=0.9.0 +revision=1 +build_style=python3-pep517 +make_build_args="--skip-dependency-check" +make_check_args="--deselect tests/test_tutorial/test_parameter_types/test_path/test_tutorial002_an.py::test_not_exists + --deselect tests/test_tutorial/test_subcommands/test_tutorial001.py::test_scripts + --deselect tests/test_tutorial/test_subcommands/test_tutorial003.py::test_scripts + --deselect tests/test_tutorial/test_parameter_types/test_path/test_tutorial002.py::test_not_exists" +hostmakedepends="python3-flit_core" +depends="python3 python3-click python3-colorama python3-rich + python3-shellingham python3-typing_extensions" +checkdepends="black python3-coverage python3-isort + python3-mypy python3-pipenv python3-pytest python3-pytest-black + python3-pytest-cov python3-pytest-subtests python3-pytest-sugar + python3-pytest-xdist ${depends}" +short_desc="Build great CLIs. Easy to code. Based on Python type hints" +maintainer="c0m4r " +license="MIT" +homepage="https://github.com/tiangolo/typer" +distfiles="${PYPI_SITE}/t/typer/typer-${version}.tar.gz" +checksum=50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2 + +post_install() { + vlicense LICENSE +}