Skip to content

Commit

Permalink
Reinstantiate rust-bootstrap variant for py-cryptography
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Dec 2, 2024
1 parent 2843275 commit 91aad04
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions var/spack/repos/builtin/packages/py-cryptography/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class PyCryptography(PythonPackage):
version("1.8.1", sha256="323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190")

variant("idna", default=False, when="@2.5:3.0", description="Deprecated U-label support")
variant("rust_bootstrap", default=False, when="@3.4.3:", description="Use pre-compiled Rust")

# distutils required in version <= 40
depends_on("python@:3.11", when="@:40", type=("build", "run"))
Expand All @@ -52,10 +53,12 @@ class PyCryptography(PythonPackage):
depends_on("[email protected]:", when="@42", type=("build", "run"))
depends_on("[email protected]:", when="@3.4.2:", type="build")
depends_on("[email protected]:", when="@3.4:3.4.1", type=("build", "run"))
depends_on("[email protected]:", when="@41:", type="build")
depends_on("[email protected]:", when="@38:", type="build")
depends_on("[email protected]:", when="@3.4.5:", type="build")
depends_on("[email protected]:", when="@3.4.3:3.4.4", type="build")
with when("~rust_bootstrap"):
depends_on("[email protected]:", when="@41:", type="build")
depends_on("[email protected]:", when="@38:", type="build")
depends_on("[email protected]:", when="@3.4.5:", type="build")
depends_on("[email protected]:", when="@3.4.3:3.4.4", type="build")
depends_on("rust-bootstrap", when="+rust_bootstrap", type="build")
depends_on("pkgconfig", when="@40:", type="build")

depends_on("[email protected]:", when="@3.3:", type=("build", "run"))
Expand Down

0 comments on commit 91aad04

Please sign in to comment.