mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
sphinx(python), add new/updated dependency python recipes (#8775)
* sphinx(python), add new/updated dependency python recipes * Update dev-python/babel/babel-2.12.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/babel/babel-2.12.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/babel/babel-2.12.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinxcontrib-jquery/sphinxcontrib_jquery-4.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinx/sphinx-7.0.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinx/sphinx-7.0.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinx/sphinx-7.0.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> --------- Co-authored-by: OscarL <oscar.lesta@gmail.com>
This commit is contained in:
77
dev-python/filelock/filelock-3.12.0.recipe
Normal file
77
dev-python/filelock/filelock-3.12.0.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="A platform independent file lock"
|
||||
DESCRIPTION="This package contains a single module, which implements a platform independent file \
|
||||
lock in Python, which provides a simple way of inter-process communication."
|
||||
HOMEPAGE="https://github.com/tox-dev/py-filelock"
|
||||
COPYRIGHT="2023 Bernát Gábor"
|
||||
LICENSE="Unlicense"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4a26dad7207539e765a1f7a3cdbce868b5a266120366b660f1736f8955bc3ccb"
|
||||
SOURCE_FILENAME="filelock-$portVersion.tar.gz"
|
||||
SOURCE_DIR="py-filelock-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultTestVersion="python39"
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
build_$pythonPackage
|
||||
hatch_vcs_$pythonPackage
|
||||
hatchling_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
TEST_REQUIRES="
|
||||
filelock_$defaultTestVersion
|
||||
pytest_mock_$defaultTestVersion
|
||||
cmd:pytest
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
|
||||
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
packageEntries ${PYTHON_PACKAGES[i]} \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
pytest -v
|
||||
}
|
||||
24
dev-python/filelock/licenses/Unlicense
Normal file
24
dev-python/filelock/licenses/Unlicense
Normal file
@@ -0,0 +1,24 @@
|
||||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <http://unlicense.org>
|
||||
Reference in New Issue
Block a user