diff --git a/pyproject-toml-fix-metadata.diff b/pyproject-toml-fix-metadata.diff new file mode 100644 index 0000000..9f92dde --- /dev/null +++ b/pyproject-toml-fix-metadata.diff @@ -0,0 +1,11 @@ +--- pyproject-toml-0.8.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyproject-toml-0.8.2/Cargo.toml 2024-02-05T15:59:44.275570+00:00 +@@ -31,7 +31,7 @@ + features = ["serde"] + + [dependencies.pep440_rs] +-version = "0.4.0" ++version = "0.3.6" + features = ["serde"] + + [dependencies.pep508_rs] diff --git a/rust-pyproject-toml.spec b/rust-pyproject-toml.spec index d8e66a3..7a4fb11 100644 --- a/rust-pyproject-toml.spec +++ b/rust-pyproject-toml.spec @@ -12,6 +12,11 @@ Summary: Pyproject.toml parser in Rust License: MIT URL: https://crates.io/crates/pyproject-toml Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * revert breaking upstream change (pep440_rs v0.3 -> v0.4 update): +# https://github.com/PyO3/pyproject-toml-rs/commit/9e888f4 +# https://github.com/PyO3/pyproject-toml-rs/issues/17 +Patch: pyproject-toml-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24