Skip to content

Commit 58709b3

Browse files
authored
Merge pull request #164 from rhubert/python
Python
2 parents 733e9d0 + 04ab49b commit 58709b3

11 files changed

Lines changed: 261 additions & 0 deletions

File tree

recipes/python/asn1.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "3.2.0"
5+
PKG_LICENSE: "MIT"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/andrivet/python-asn1/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA256: 2d67c5e8f0c88c0612e321af84e8d598bfa51869f9a9597b8d08d355880e9d3e
11+
stripComponents: 1
12+
13+
buildScript: |
14+
python3Build $1
15+
16+
packageScript: |
17+
python3PackageTgt

recipes/python/cffi.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
inherit: ["python3::build", cpackage]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "2.0.0"
5+
PKG_LICENSE: "MIT-0"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/python-cffi/cffi/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA256: e32bea840b50779a43dcaff13dcf6fa8bc29aa1b071c2cb4e27c1bd79114a202
11+
stripComponents: 1
12+
13+
depends:
14+
- libs::libffi-dev
15+
- use: []
16+
depends:
17+
- libs::libffi-tgt
18+
19+
buildVars: [CC]
20+
buildScript: |
21+
python3Build $1
22+
23+
packageScript: |
24+
python3PackageTgt
25+
26+
provideDeps: ['*-tgt']

recipes/python/cryptography.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
inherit: [cargo, "python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "46.0.5"
5+
PKG_LICENSE: "Apache-2.0 OR BSD-3-Clause"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/pyca/cryptography/archive/refs/tags/${PKG_VERSION}.tar.gz
10+
digestSHA256: 7571f0e09a6d6eb22168993f94d35867b4dcbd0d34224e0eb7b392b905b3f12f
11+
stripComponents: 1
12+
13+
depends:
14+
- tools:
15+
target-toolchain: host-compat-toolchain
16+
depends:
17+
- name: python::maturin
18+
alias: python::maturin-host
19+
use: [tools]
20+
- python::cffi
21+
- name: libs::openssl-dev
22+
alias: openssl-host
23+
use: [result]
24+
25+
- python::setuptools-rust
26+
- python::pycparser
27+
- python::semantic-version
28+
- libs::openssl-dev
29+
- use: []
30+
depends:
31+
- libs::openssl-tgt
32+
33+
checkoutDeterministic: True
34+
checkoutScript: |
35+
cargoFetchDeps
36+
37+
buildTools: [host-toolchain, target-toolchain, maturin]
38+
buildSetup: |
39+
# provide openssl dir
40+
export OPENSSL_DIR=${BOB_DEP_PATHS['libs::openssl-dev']}/usr/
41+
# caro builds a native-tool depending on python::cffi
42+
export HOST_CC=gcc
43+
export CARGO_BUILD_RUSTFLAGS="-C link-arg=-L${BOB_DEP_PATHS['openssl-host']}/usr/lib"
44+
45+
buildScript: |
46+
# without a git directory maturin fails with:
47+
# fatal: not a git repository (or any parent up to mount point
48+
# dev/build/python/cryptography/2)
49+
# See https://github.com/pyca/cryptography/issues/11845
50+
git init .
51+
52+
# build wheel to avoid
53+
# ERROR Source /tmp/build-via-sdist-5zco0pfp/cryptography-46.0.5 does
54+
# not appear to be a Python project
55+
# See: https://github.com/pyca/cryptography/issues/11845
56+
python3Build -w $1
57+
58+
packageScript: |
59+
python3PackageTgt
60+
61+
provideDeps:
62+
- python::setuptools-rust
63+
- python::pycparser
64+
- python::semantic-version
65+
- '*-tgt'

recipes/python/deprecated.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "1.3.1"
5+
PKG_LICENSE: "MIT"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/laurent-laporte-pro/deprecated/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA256: 5bfaa49b1edadd5599b2117baf2bf037f493eeda686d6b2c004d55e8ace6f988
11+
stripComponents: 1
12+
13+
depends:
14+
- python::wrapt
15+
16+
buildScript: |
17+
python3Build $1
18+
19+
packageScript: |
20+
python3PackageTgt
21+
22+
provideDeps: ['python::wrapt']

recipes/python/ecpy.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "1.2.5"
5+
PKG_LICENSE: "Apache-2.0"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: https://github.com/cslashm/ECPy/archive/refs/tags/${PKG_VERSION}.tar.gz
10+
digestSHA256: 02a2e990fe4b9c51a5a2d7518439ad80e5d839c931f76fa5144c50543e6a103f
11+
stripComponents: 1
12+
13+
buildScript: |
14+
python3Build $1
15+
16+
packageScript: |
17+
python3PackageTgt

recipes/python/maturin.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
inherit: ["python3::setuptools", cargo]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "1.12.6"
5+
PKG_LICENSE: "MIT OR Apache-2.0"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/PyO3/maturin/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA256: d9fb69fb10a4574032feb93da3f98cbfbf4e652340135c968781845aa1f53147
11+
stripComponents: 1
12+
13+
depends:
14+
- python::puccinialin
15+
- python::setuptools-rust
16+
- python::semantic-version
17+
18+
checkoutDeterministic: True
19+
checkoutScript: |
20+
cargoFetchDeps
21+
22+
buildScript: |
23+
python3BuildSetuptools $1
24+
25+
packageScript: |
26+
python3PackageTgt
27+
28+
provideDeps: ['python::*']
29+
provideTools:
30+
maturin: "usr/bin"

recipes/python/puccinialin.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "0.1.8"
5+
PKG_LICENSE: "MIT OR Apache-2.0"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: "https://files.pythonhosted.org/packages/34/7d/\
10+
88810c578a1526a8a73ac07bf33fb65d68f9b9c82c37950d09159f4d1916/puccinialin-0.1.8.tar.gz"
11+
digestSHA256: e19f6316967ae100bf3fb92d8af95e3cec11ce0de58acd2f1a0bca835403a394
12+
stripComponents: 1
13+
14+
buildScript: |
15+
python3Build $1
16+
17+
packageScript: |
18+
python3PackageTgt
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "2.10.0"
5+
PKG_LICENSE: "BSD-2-Clause"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/rbarrois/python-semanticversion/archive/refs/tags/${PKG_VERSION}.tar.gz
10+
digestSHA256: e234480908f633d2d80fdd97e87699135b2ed2fc9876b7f41d1d4a2d3262a0c4
11+
stripComponents: 1
12+
13+
buildScript: |
14+
python3Build $1
15+
16+
packageScript: |
17+
python3PackageTgt
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "1.12.0"
5+
PKG_LICENSE: "MIT"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/PyO3/setuptools-rust/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA256: e6a8f4c4e3c5f0f87b192425572579b7842ea840b1bdda940e751f9d198a3f58
11+
stripComponents: 1
12+
13+
depends:
14+
- python::setuptools-scm
15+
16+
buildScript: |
17+
python3Build $1
18+
19+
packageScript: |
20+
python3PackageTgt
21+
22+
provideDeps: ['python::setuptools-scm']

recipes/python/wrapt.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
inherit: ["python3::build"]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "2.1.2"
5+
PKG_LICENSE: "BSD-2-Clause"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/GrahamDumpleton/wrapt/archive/refs/tags/${PKG_VERSION}.tar.gz
10+
digestSHA256: 9f289d4a27cb94eaa4ecf91cdcdb2508ba38db655ba3f43e018f88e1750b8915
11+
stripComponents: 1
12+
13+
buildScript: |
14+
python3Build $1
15+
16+
packageScript: |
17+
python3PackageTgt

0 commit comments

Comments
 (0)