summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-02-09 09:42:55 -0500
committerIonen Wolkens <ionen@gentoo.org>2022-02-09 10:05:30 -0500
commitb8304d9258d5d7b3f504217db6d625ece6136b4d (patch)
tree53ab6cfc16049921e62cb89f2201cd02452fc181 /dev-util/maturin
parentdev-python/pydata-sphinx-theme: keyword ~riscv, #831852 (diff)
downloadgentoo-b8304d9258d5d7b3f504217db6d625ece6136b4d.tar.gz
gentoo-b8304d9258d5d7b3f504217db6d625ece6136b4d.tar.bz2
gentoo-b8304d9258d5d7b3f504217db6d625ece6136b4d.zip
dev-util/maturin: add 0.12.9
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-util/maturin')
-rw-r--r--dev-util/maturin/Manifest2
-rw-r--r--dev-util/maturin/maturin-0.12.9.ebuild349
2 files changed, 351 insertions, 0 deletions
diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest
index 2c7951ffb55d..49d709bde8fb 100644
--- a/dev-util/maturin/Manifest
+++ b/dev-util/maturin/Manifest
@@ -22,6 +22,7 @@ DIST base64-0.13.0.crate 62070 BLAKE2B b957f65cdb1e28baeca0cefc92fa98be797409b7d
DIST bitflags-1.3.2.crate 23021 BLAKE2B eb990bb27b2bdeb66fd7212ce582cb36e1c616debbac85df642d0c82b25439e6bf9b1e811fac76b59e58ea3c1bbea6170d03a61e8f9a395e4334a0e2e2987eda SHA512 3c698f757b5cc62f815f9a1cce365c3d2dd88e4db71f331dff8bba86c2865f755b81cb4c9bfc59bd86b7643b0943f9e09a7c4f8ad75eb2ab0e714803d0129f62
DIST block-buffer-0.10.0.crate 10088 BLAKE2B 4af449e0071de2b367f7311f8e4a18b29ed2bdd1d0f5f623a45a9287af040cb2e0a8ae088d817e8249130a64abdd9df2b3909eca7f64a717d952a0b1cde4f54f SHA512 aa71e7463ce6520b2a8e1b1e571474c16a052129e0b0dcb8bf57bb4304182f5a75a079311a50363fcf2368318c277c2f3cc06ea9cac47764e0cedc8ecb79a7b6
DIST block-buffer-0.10.1.crate 10178 BLAKE2B f6293c6d332ab2e4c4b0f41a60a51314394b206672315ad73238ba92a1f7c98e0767b6422fc50294abd616924fd89832b4f84724cff4b636b1a08d6cff1e8c1a SHA512 c945993de3af21f88c0e9727e6994a044d910d461a351adfda602a69b50877ef720214606d20c8461ff3580bc6fe56880968c9a2609f73c435507ae2d7b2bcdd
+DIST block-buffer-0.10.2.crate 10258 BLAKE2B d3ad2f9f0379e04320e954e1a2226949d83cc1acdda806b98329a5ddcfdbbafdf511907d99ad7daae271a2981ad0c39de218968c22c3487e21a32817d41c23fa SHA512 8f1d99af7c08bf3b54ba7383cf0272eb5a8137f6244bc2d7e6d6761016614514ad7d27c5c51946c5cd7becd84b320f62fc2770e7aa07038d370505c29e032078
DIST block-buffer-0.9.0.crate 7108 BLAKE2B 42e99ec46c6e43d5f85e8d6d0a8fcef7175c97828758c93e55505c0e18e2646ae77bf264076041bf682532e28268a4978dd9c822c0475347ee3d29c5df2601fb SHA512 2d0f8908f59d4b1cccd1fbca0c1fa3cc4b224f09549669b28a16af5acfd4369b66851e9be8d65e1df71be998fbc42fc130ad32b71e035d6055724e8fa31fbf98
DIST block-modes-0.7.0.crate 13464 BLAKE2B 70b4b199607925e338b22e04d48fffa4591942c6d8321c684cd34ab4ca28e6ae16a75b36845867fe99fffc47af62ed5b27e5c17ee860e1b87fc5d3526f34a9df SHA512 255475599706befd36756100abe350520076aafc3eb069beb5a5daad4c017f3c547a9699e7152b935d09a59f9a8762e0b23e5e3eec5a09ee2377978d272232b6
DIST block-padding-0.2.1.crate 7672 BLAKE2B 26f682717c908886fc54606950697a01e999c8d725e39cd5ca9148b089d5b32981daf717db21128b551287d5e818363db4c34123a8d8dfa3405f940eb284c01a SHA512 d0bad6ca76cd491446f17c00986aa8caab36a78b4ee4f881a14b316074a96940566ed90460aade765f2e7ce04b359cfe21f6c323200637f50e8b5adf567017af
@@ -188,6 +189,7 @@ DIST matches-0.1.9.crate 2246 BLAKE2B de155202636c6a03ed68cdb21e8ef96e19b45be040
DIST maturin-0.11.5.tar.gz 584266 BLAKE2B be92b8b3f94e7b5e5225a57118219cb854ea072a03b92b5811a135f54c634b89dd52c3c6bb50be539b7578e3748a34fdf4552bb46544500b061743c7dbd92ba0 SHA512 31c32849fe424393351c6f895eaf76852647fcd6b5bf77d1244147315c4e730762c03d49d898bc76805dcd0a6ed8004e8eaf26a2f78af2228f8cfd3cb2201c7b
DIST maturin-0.12.6.tar.gz 277779 BLAKE2B cce62dbeca01ed5fb049f9256d2c8d3b04a98bf64e440b0d75c67b8df769fffa047c9891ca7e7717a2b5862ff87025eade7b4c011e54ac6968f59595c89f7064 SHA512 ebb1810567147a6732f6ecf513b2227bc4023c8e524a5bce966da8e96224a6583da8122a09f69667daa4248c5e5ec138c31e499bb321e3f1b0570aebda8ad87a
DIST maturin-0.12.8.tar.gz 281357 BLAKE2B b681eda744aa2e10c38e14348ebd08383f26a26e16a4acfdd942269a189a42f0fda93294ffb2d280daf24907247d00c7c384806c7cc451be9ccc2b87599e0f7c SHA512 b36b8f6d47446c6f31f7cfe3d06563b3904a700ee38aed242c530aef03ca29c6c2591210dc3dfe9cc93b6b299d3d3a0ac81cd5cba69a925fe4a05ef536af8708
+DIST maturin-0.12.9.tar.gz 281560 BLAKE2B cb3163b7106711c1ea72e621d3eaa49ed4c9c69244e785b89b3ca0f56580123d5b8b5f95d2ef9f4383708b908e0ed69af34014ee1c69fab080d67a5c6b5a05ed SHA512 52e790b2d3e56c792fd564fd8b47945e142d6c34438beacfc311a3caa171e1b3d58585ff9cfaefb1a52bbcce8d2cba0ac3d90b489b270ae162299ed0ec9af50c
DIST memchr-2.4.1.crate 64977 BLAKE2B 31479718c118093b684bed946eae0706d77d9d275bd49f5aeff4de490f479abd60c7dc462150eafffc6d6fc1da0853123b78be038826b775d2a41a4c39d93ab5 SHA512 d8912e3902a2126f86159bdc998532a2890b882cbb7d59b5a470fffcad4c32281e045f2fff48a235aa4189f1928866bf3d33b699d50866ad6b6c272bba7adb11
DIST mime-0.3.16.crate 15206 BLAKE2B 9a599ca82fd0dd6d3d2dea68a47b8441b1024d016ee1fb23cc6431b39ead20c9b3fe1ff3397af79c2c1b2cd277c440d4fff69f6b28c550ddbe15f680923c834b SHA512 cb1d691610cb82720e553247336fc5eab63407ad37febf2eb50aaa4e329cca70959ecd8bb8c7af5753acec2c8e86fc9a0f8ad9ad2de93fe9295ce84033d6054c
DIST mime_guess-2.0.3.crate 27437 BLAKE2B 6f9176749241dc9b8c08eea3285ac1aeb40ab079f8184d93c436c00b205ab754d9c2b5c481774837bd1c4522b33338fb7ecabe88ee2da471478cdc1391d9281c SHA512 b08013ce235e66eaf49a88ab4c5cf4d1f1b95846c1bbdc1a73efea9052058860c7dbe2b028fe1b33c713621862fe9af2ed097558cbf5e08903ee406a44af162d
diff --git a/dev-util/maturin/maturin-0.12.9.ebuild b/dev-util/maturin/maturin-0.12.9.ebuild
new file mode 100644
index 000000000000..c79534207a8e
--- /dev/null
+++ b/dev-util/maturin/maturin-0.12.9.ebuild
@@ -0,0 +1,349 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+ addr2line-0.17.0
+ adler-1.0.2
+ aes-0.6.0
+ aes-soft-0.6.4
+ aesni-0.10.0
+ aho-corasick-0.7.18
+ anyhow-1.0.53
+ async-io-1.6.0
+ atty-0.2.14
+ autocfg-1.1.0
+ backtrace-0.3.64
+ base64-0.13.0
+ bitflags-1.3.2
+ block-buffer-0.10.2
+ block-buffer-0.9.0
+ block-modes-0.7.0
+ block-padding-0.2.1
+ bstr-0.2.17
+ bumpalo-3.9.1
+ byteorder-1.4.3
+ bytesize-1.1.0
+ bzip2-0.4.3
+ bzip2-sys-0.1.11+1.0.8
+ cache-padded-1.2.0
+ camino-1.0.7
+ cargo-platform-0.1.2
+ cargo_metadata-0.14.1
+ cbindgen-0.20.0
+ cc-1.0.72
+ cfg-if-0.1.10
+ cfg-if-1.0.0
+ charset-0.1.3
+ chunked_transfer-1.4.0
+ cipher-0.2.5
+ clap-3.0.14
+ clap_complete-3.0.6
+ clap_complete_fig-3.0.2
+ clap_derive-3.0.14
+ concurrent-queue-1.2.2
+ configparser-3.0.0
+ console-0.15.0
+ core-foundation-0.9.3
+ core-foundation-sys-0.8.3
+ cpufeatures-0.2.1
+ crc32fast-1.3.2
+ crossbeam-utils-0.8.7
+ crypto-common-0.1.1
+ crypto-mac-0.10.1
+ data-encoding-2.3.2
+ derivative-2.2.0
+ dialoguer-0.9.0
+ digest-0.10.1
+ digest-0.9.0
+ dirs-4.0.0
+ dirs-sys-0.3.6
+ encode_unicode-0.3.6
+ encoding_rs-0.8.30
+ enumflags2-0.6.4
+ enumflags2_derive-0.6.4
+ env_logger-0.7.1
+ fastrand-1.7.0
+ fat-macho-0.4.4
+ filetime-0.2.15
+ flate2-1.0.22
+ fnv-1.0.7
+ foreign-types-0.3.2
+ foreign-types-shared-0.1.1
+ form_urlencoded-1.0.1
+ fs-err-2.6.0
+ futures-0.3.21
+ futures-channel-0.3.21
+ futures-core-0.3.21
+ futures-executor-0.3.21
+ futures-io-0.3.21
+ futures-lite-1.12.0
+ futures-macro-0.3.21
+ futures-sink-0.3.21
+ futures-task-0.3.21
+ futures-util-0.3.21
+ generic-array-0.14.5
+ getrandom-0.2.4
+ gimli-0.26.1
+ glob-0.3.0
+ globset-0.4.8
+ goblin-0.4.3
+ hashbrown-0.11.2
+ heck-0.3.3
+ heck-0.4.0
+ hermit-abi-0.1.19
+ hkdf-0.10.0
+ hmac-0.10.1
+ human-panic-1.0.3
+ humantime-1.3.0
+ idna-0.2.3
+ ignore-0.4.18
+ indexmap-1.8.0
+ indoc-1.0.3
+ instant-0.1.12
+ itoa-1.0.1
+ js-sys-0.3.56
+ keyring-1.1.1
+ lazy_static-1.4.0
+ lddtree-0.2.6
+ libc-0.2.117
+ log-0.4.14
+ mailparse-0.13.8
+ matches-0.1.9
+ memchr-2.4.1
+ mime-0.3.16
+ mime_guess-2.0.3
+ minijinja-0.13.0
+ miniz_oxide-0.4.4
+ multipart-0.18.0
+ native-tls-0.2.8
+ nb-connect-1.2.0
+ nix-0.17.0
+ num-0.3.1
+ num-bigint-0.3.3
+ num-complex-0.3.1
+ num-integer-0.1.44
+ num-iter-0.1.42
+ num-rational-0.3.2
+ num-traits-0.2.14
+ object-0.27.1
+ once_cell-1.9.0
+ opaque-debug-0.3.0
+ openssl-0.10.38
+ openssl-probe-0.1.5
+ openssl-sys-0.9.72
+ os_str_bytes-6.0.0
+ os_type-2.4.0
+ parking-2.0.0
+ percent-encoding-2.1.0
+ pin-project-lite-0.2.8
+ pin-utils-0.1.0
+ pkg-config-0.3.24
+ plain-0.2.3
+ platform-info-0.2.0
+ polling-2.2.0
+ ppv-lite86-0.2.16
+ pretty_env_logger-0.4.0
+ proc-macro-crate-0.1.5
+ proc-macro-crate-1.1.0
+ proc-macro-error-1.0.4
+ proc-macro-error-attr-1.0.4
+ proc-macro2-1.0.36
+ pyproject-toml-0.3.1
+ python-pkginfo-0.5.1
+ quick-error-1.2.3
+ quote-1.0.15
+ quoted_printable-0.4.5
+ rand-0.8.4
+ rand_chacha-0.3.1
+ rand_core-0.6.3
+ rand_hc-0.3.1
+ redox_syscall-0.2.10
+ redox_users-0.4.0
+ regex-1.5.4
+ regex-syntax-0.6.25
+ remove_dir_all-0.5.3
+ rfc2047-decoder-0.1.2
+ ring-0.16.20
+ rpassword-5.0.1
+ rustc-demangle-0.1.21
+ rustls-0.20.2
+ ryu-1.0.9
+ same-file-1.0.6
+ schannel-0.1.19
+ scoped-tls-1.0.0
+ scroll-0.10.2
+ scroll_derive-0.10.5
+ sct-0.7.0
+ secret-service-2.0.1
+ security-framework-2.6.1
+ security-framework-sys-2.6.1
+ semver-1.0.5
+ serde-1.0.136
+ serde_derive-1.0.136
+ serde_json-1.0.78
+ serde_repr-0.1.7
+ sha2-0.10.1
+ sha2-0.9.9
+ shlex-1.1.0
+ slab-0.4.5
+ smawk-0.3.1
+ socket2-0.4.4
+ spin-0.5.2
+ static_assertions-1.1.0
+ strsim-0.10.0
+ subtle-2.4.1
+ syn-1.0.86
+ tar-0.4.38
+ target-lexicon-0.12.3
+ tempfile-3.3.0
+ termcolor-1.1.2
+ terminal_size-0.1.17
+ textwrap-0.14.2
+ thiserror-1.0.30
+ thiserror-impl-1.0.30
+ thread_local-1.1.4
+ time-0.1.43
+ tinyvec-1.5.1
+ tinyvec_macros-0.1.0
+ toml-0.5.8
+ typenum-1.15.0
+ unicase-2.6.0
+ unicode-bidi-0.3.7
+ unicode-linebreak-0.1.2
+ unicode-normalization-0.1.19
+ unicode-segmentation-1.9.0
+ unicode-width-0.1.9
+ unicode-xid-0.2.2
+ unindent-0.1.7
+ untrusted-0.7.1
+ ureq-2.4.0
+ url-2.2.2
+ uuid-0.8.2
+ vcpkg-0.2.15
+ version_check-0.9.4
+ void-1.0.2
+ waker-fn-1.1.0
+ walkdir-2.3.2
+ wasi-0.10.2+wasi-snapshot-preview1
+ wasm-bindgen-0.2.79
+ wasm-bindgen-backend-0.2.79
+ wasm-bindgen-macro-0.2.79
+ wasm-bindgen-macro-support-0.2.79
+ wasm-bindgen-shared-0.2.79
+ web-sys-0.3.56
+ webpki-0.22.0
+ webpki-roots-0.22.2
+ wepoll-ffi-0.1.2
+ winapi-0.3.9
+ winapi-i686-pc-windows-gnu-0.4.0
+ winapi-util-0.1.5
+ winapi-x86_64-pc-windows-gnu-0.4.0
+ xattr-0.2.2
+ zbus-1.9.1
+ zbus_macros-1.9.1
+ zeroize-1.5.2
+ zip-0.5.13
+ zvariant-2.10.0
+ zvariant_derive-2.10.0"
+CRATES_TEST="
+ indoc-0.3.6
+ indoc-impl-0.3.6
+ libc-0.2.107
+ libc-0.2.108
+ libc-0.2.110
+ lock_api-0.4.5
+ once_cell-1.8.0
+ parking_lot-0.11.2
+ parking_lot_core-0.8.5
+ paste-0.1.18
+ paste-impl-0.1.18
+ proc-macro-hack-0.5.19
+ proc-macro2-1.0.32
+ pyo3-0.15.1
+ pyo3-build-config-0.15.1
+ pyo3-macros-0.15.1
+ pyo3-macros-backend-0.15.1
+ quote-1.0.10
+ scopeguard-1.1.0
+ smallvec-1.7.0
+ syn-1.0.81
+ syn-1.0.82"
+PYTHON_COMPAT=( python3_{8..10} )
+inherit cargo distutils-r1 flag-o-matic
+
+DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings"
+HOMEPAGE="https://maturin.rs/"
+SRC_URI="
+ https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris)
+ test? ( $(cargo_crate_uris ${CRATES_TEST}) )"
+
+LICENSE="
+ 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0 openssl
+ doc? ( CC-BY-4.0 OFL-1.1 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/toml[${PYTHON_USEDEP}]"
+BDEPEND="
+ doc? ( app-text/mdbook )
+ test? (
+ dev-python/cffi[${PYTHON_USEDEP}]
+ dev-python/boltons[${PYTHON_USEDEP}]
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ )"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.12.8-zig-tests.patch
+)
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ # use setup.py only for pure python and handle cargo manually
+ sed -i 's/cmdclass.*/packages=["'${PN}'"],/' setup.py || die
+
+ if use test; then
+ # used to prevent use of network during tests
+ cat > "${T}"/pip.conf <<-EOF || die
+ [install]
+ no-index = yes
+ no-dependencies = yes
+ EOF
+
+ # run plain 'python' from eclass rather than auto-detect 'python3.x'
+ sed -i 's/"build",/&"-i","python",/' tests/common/integration.rs || die
+ fi
+}
+
+python_configure_all() {
+ filter-flags '-flto*' # undefined references with ring crate
+
+ cargo_src_configure
+}
+
+python_compile_all() {
+ cargo_src_compile
+
+ use !doc || mdbook build -d html guide || die
+}
+
+python_test() {
+ local -x PIP_CONFIG_FILE=${T}/pip.conf
+ local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1
+
+ cargo_src_test -- --skip locked_doesnt_build_without_cargo_lock
+}
+
+python_install_all() {
+ cargo_src_install
+
+ dodoc Changelog.md Readme.md
+ use doc && dodoc -r guide/html
+}