summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-maturin/package.py
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-03-02 10:43:36 -0700
committerGitHub <noreply@github.com>2023-03-02 09:43:36 -0800
commit1facf99f51d73098728a311b668dc31a64fccd1d (patch)
tree95fc9120dc1326a44af79d80c04245b0b3013c74 /var/spack/repos/builtin/packages/py-maturin/package.py
parent07c89396796c49f235eb3281f650c80032f348ee (diff)
downloadspack-1facf99f51d73098728a311b668dc31a64fccd1d.tar.gz
spack-1facf99f51d73098728a311b668dc31a64fccd1d.tar.bz2
spack-1facf99f51d73098728a311b668dc31a64fccd1d.tar.xz
spack-1facf99f51d73098728a311b668dc31a64fccd1d.zip
py-rtoml: add new package (#35780)
Diffstat (limited to 'var/spack/repos/builtin/packages/py-maturin/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-maturin/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-maturin/package.py b/var/spack/repos/builtin/packages/py-maturin/package.py
new file mode 100644
index 0000000000..814a559f2d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-maturin/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PyMaturin(PythonPackage):
+ """Build and publish crates with pyo3, rust-cpython and cffi bindings
+ as well as rust binaries as python packages.
+ """
+
+ homepage = "https://github.com/pyo3/maturin"
+ pypi = "maturin/maturin-0.13.7.tar.gz"
+
+ version("0.13.7", sha256="c0a77aa0c57f945649ca711c806203a1b6888ad49c2b8b85196ffdcf0421db77")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-wheel@0.36.2:", type="build")
+ depends_on("py-setuptools-rust@1.4:", type="build")
+ depends_on("py-tomli@1.1:", when="^python@:3.10", type=("build", "run"))