py-cryptography: add v43.0.3 (switch to maturin) (#47546)

* py-cryptography: add v43.0.3 (switch to maturin)
* py-cryptography: deny some setuptools versions
* py-cryptography: depends_on py-setuptools-rust when @42, no range

---------

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
Wouter Deconinck 2024-11-11 23:09:33 -06:00 committed by GitHub
parent 91310d3ae6
commit ada4c208d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@ class PyCryptography(PythonPackage):
license("Apache-2.0")
version("43.0.3", sha256="315b9001266a492a6ff443b61238f956b214dbec9910a081ba5b6646a055a805")
version("42.0.8", sha256="8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2")
version("41.0.7", sha256="13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc")
version("41.0.3", sha256="6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34")
@ -41,7 +42,14 @@ class PyCryptography(PythonPackage):
depends_on("py-setuptools@40.6:", when="@2.7:36", type="build")
depends_on("py-setuptools@18.5:", when="@2.2:2.6", type="build")
depends_on("py-setuptools@11.3:", when="@:2.1", type="build")
depends_on("py-setuptools-rust@1.7.0:", when="@42:", type=("build", "run"))
with when("@43:"):
depends_on("py-maturin@1", type="build")
conflicts(
"^py-setuptools@74.0.0,74.1.0,74.1.1,74.1.2,74.1.3,75.0.0,75.1.0,75.2.0",
msg="some setuptools version are incompatible",
)
with when("@:42"):
depends_on("py-setuptools-rust@1.7.0:", when="@42", type=("build", "run"))
depends_on("py-setuptools-rust@0.11.4:", when="@3.4.2:", type="build")
depends_on("py-setuptools-rust@0.11.4:", when="@3.4:3.4.1", type=("build", "run"))
depends_on("rust@1.56:", when="@41:", type="build")