diff --git a/recipes/python/asn1.yaml b/recipes/python/asn1.yaml new file mode 100644 index 00000000..6d83a748 --- /dev/null +++ b/recipes/python/asn1.yaml @@ -0,0 +1,17 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "3.2.0" + PKG_LICENSE: "MIT" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/andrivet/python-asn1/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA256: 2d67c5e8f0c88c0612e321af84e8d598bfa51869f9a9597b8d08d355880e9d3e + stripComponents: 1 + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt diff --git a/recipes/python/cffi.yaml b/recipes/python/cffi.yaml new file mode 100644 index 00000000..99bfa6e6 --- /dev/null +++ b/recipes/python/cffi.yaml @@ -0,0 +1,26 @@ +inherit: ["python3::build", cpackage] + +metaEnvironment: + PKG_VERSION: "2.0.0" + PKG_LICENSE: "MIT-0" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/python-cffi/cffi/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA256: e32bea840b50779a43dcaff13dcf6fa8bc29aa1b071c2cb4e27c1bd79114a202 + stripComponents: 1 + +depends: + - libs::libffi-dev + - use: [] + depends: + - libs::libffi-tgt + +buildVars: [CC] +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt + +provideDeps: ['*-tgt'] diff --git a/recipes/python/cryptography.yaml b/recipes/python/cryptography.yaml new file mode 100644 index 00000000..a703a05a --- /dev/null +++ b/recipes/python/cryptography.yaml @@ -0,0 +1,59 @@ +inherit: [cargo, "python3::build"] + +metaEnvironment: + PKG_VERSION: "46.0.5" + PKG_LICENSE: "Apache-2.0 OR BSD-3-Clause" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/pyca/cryptography/archive/refs/tags/${PKG_VERSION}.tar.gz + digestSHA256: 7571f0e09a6d6eb22168993f94d35867b4dcbd0d34224e0eb7b392b905b3f12f + stripComponents: 1 + +depends: + - name: python::maturin + tools: + target-toolchain: host-compat-toolchain + use: [tools] + alias: python::maturin-host + + - python::setuptools-rust + - python::cffi + - python::pycparser + - python::semantic-version + - libs::openssl-dev + - use: [] + depends: + - libs::openssl-tgt + +checkoutDeterministic: True +checkoutScript: | + cargoFetchDeps + +buildTools: [host-toolchain, target-toolchain, maturin] +buildSetup: | + # provide openssl dir + export OPENSSL_DIR=${BOB_DEP_PATHS['libs::openssl-dev']}/usr/ + export LD_LIBRARY_PATH=${BOB_DEP_PATHS['libs::libffi-tgt']}/usr/lib +buildScript: | + # without a git directory maturin fails with: + # fatal: not a git repository (or any parent up to mount point + # dev/build/python/cryptography/2) + # See https://github.com/pyca/cryptography/issues/11845 + git init . + + mkdir -p bin && pushd bin + ln -snf $(which $CC) cc + export PATH=$(pwd):${PATH} + popd # bin + + # build wheel to avoid + # ERROR Source /tmp/build-via-sdist-5zco0pfp/cryptography-46.0.5 does + # not appear to be a Python project + # Also see: https://github.com/pyca/cryptography/issues/11845 + python3Build -w $1 + +packageScript: | + python3PackageTgt + +provideDeps: ['python::*', '*-tgt'] diff --git a/recipes/python/deprecated.yaml b/recipes/python/deprecated.yaml new file mode 100644 index 00000000..dd1ada78 --- /dev/null +++ b/recipes/python/deprecated.yaml @@ -0,0 +1,22 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "1.3.1" + PKG_LICENSE: "MIT" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/laurent-laporte-pro/deprecated/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA256: 5bfaa49b1edadd5599b2117baf2bf037f493eeda686d6b2c004d55e8ace6f988 + stripComponents: 1 + +depends: + - python::wrapt + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt + +provideDeps: ['python::*'] diff --git a/recipes/python/ecpy.yaml b/recipes/python/ecpy.yaml new file mode 100644 index 00000000..3df1fa43 --- /dev/null +++ b/recipes/python/ecpy.yaml @@ -0,0 +1,17 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "1.2.5" + PKG_LICENSE: "Apache-2.0" + +checkoutSCM: + scm: url + url: https://github.com/cslashm/ECPy/archive/refs/tags/${PKG_VERSION}.tar.gz + digestSHA256: 02a2e990fe4b9c51a5a2d7518439ad80e5d839c931f76fa5144c50543e6a103f + stripComponents: 1 + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt diff --git a/recipes/python/maturin.yaml b/recipes/python/maturin.yaml new file mode 100644 index 00000000..7e097610 --- /dev/null +++ b/recipes/python/maturin.yaml @@ -0,0 +1,30 @@ +inherit: ["python3::setuptools", cargo] + +metaEnvironment: + PKG_VERSION: "1.12.6" + PKG_LICENSE: "MIT OR Apache-2.0" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/PyO3/maturin/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA256: d9fb69fb10a4574032feb93da3f98cbfbf4e652340135c968781845aa1f53147 + stripComponents: 1 + +depends: + - python::puccinialin + - python::setuptools-rust + - python::semantic-version + +checkoutDeterministic: True +checkoutScript: | + cargoFetchDeps + +buildScript: | + python3BuildSetuptools $1 + +packageScript: | + python3PackageTgt + +provideDeps: ['python::*'] +provideTools: + maturin: "usr/bin" diff --git a/recipes/python/puccinialin.yaml b/recipes/python/puccinialin.yaml new file mode 100644 index 00000000..6359b927 --- /dev/null +++ b/recipes/python/puccinialin.yaml @@ -0,0 +1,20 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "0.1.8" + PKG_LICENSE: "MIT OR Apache-2.0" + +checkoutSCM: + scm: url + url: "https://files.pythonhosted.org/packages/34/7d/\ + 88810c578a1526a8a73ac07bf33fb65d68f9b9c82c37950d09159f4d1916/puccinialin-0.1.8.tar.gz" + digestSHA256: e19f6316967ae100bf3fb92d8af95e3cec11ce0de58acd2f1a0bca835403a394 + stripComponents: 1 + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt + +provideDeps: ['python::*'] diff --git a/recipes/python/semantic-version.yaml b/recipes/python/semantic-version.yaml new file mode 100644 index 00000000..2d908234 --- /dev/null +++ b/recipes/python/semantic-version.yaml @@ -0,0 +1,17 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "2.10.0" + PKG_LICENSE: "BSD-2-Clause" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/rbarrois/python-semanticversion/archive/refs/tags/${PKG_VERSION}.tar.gz + digestSHA256: e234480908f633d2d80fdd97e87699135b2ed2fc9876b7f41d1d4a2d3262a0c4 + stripComponents: 1 + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt diff --git a/recipes/python/setuptools-rust.yaml b/recipes/python/setuptools-rust.yaml new file mode 100644 index 00000000..be9842e9 --- /dev/null +++ b/recipes/python/setuptools-rust.yaml @@ -0,0 +1,22 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "1.12.0" + PKG_LICENSE: "MIT" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/PyO3/setuptools-rust/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA256: e6a8f4c4e3c5f0f87b192425572579b7842ea840b1bdda940e751f9d198a3f58 + stripComponents: 1 + +depends: + - python::setuptools-scm + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt + +provideDeps: ['python::*'] diff --git a/recipes/python/wrapt.yaml b/recipes/python/wrapt.yaml new file mode 100644 index 00000000..7a23618b --- /dev/null +++ b/recipes/python/wrapt.yaml @@ -0,0 +1,17 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "2.1.2" + PKG_LICENSE: "BSD-2-Clause" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/GrahamDumpleton/wrapt/archive/refs/tags/${PKG_VERSION}.tar.gz + digestSHA256: 9f289d4a27cb94eaa4ecf91cdcdb2508ba38db655ba3f43e018f88e1750b8915 + stripComponents: 1 + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt diff --git a/tests/buildall/recipes/all.yaml b/tests/buildall/recipes/all.yaml index 10ace828..7ec1e0c9 100644 --- a/tests/buildall/recipes/all.yaml +++ b/tests/buildall/recipes/all.yaml @@ -122,17 +122,22 @@ depends: - perl::xml-parser-tgt - python::anyio + - python::asn1 - python::build - python::cachetools - python::calver - python::chardet + - python::cffi - python::click - python::colorama - python::construct - python::construct-dataclasses + - python::cryptography - python::cython + - python::deprecated - python::distlib - python::docutils + - python::ecpy - python::filelock - python::funcy - python::h11 @@ -142,6 +147,7 @@ depends: - python::lxml - python::mako - python::markupsafe + - python::maturin - python::packaging - python::pathspec - python::pbr @@ -149,6 +155,7 @@ depends: - python::platformdirs - python::pluggy - python::psutil + - python::puccinialin - python::pycotap - python::pycparser - python::pyc_wheel @@ -156,6 +163,8 @@ depends: - python::pyproject-hooks - python::pyyaml - python::regex + - python::semantic-version + - python::setuptools-rust - python::setuptools-scm - python::smbus3 - python::starlette @@ -166,6 +175,7 @@ depends: - python::typing_extensions - python::uvicorn - python::virtualenv + - python::wrapt - utils::acpica - utils::brtools