python3Packages.chia-rs: fix build

This commit is contained in:
Louis Bettens 2023-01-04 00:35:10 +01:00 committed by Martin Weinelt
parent 6d0a0fda79
commit 4469b2ad1a
3 changed files with 853 additions and 101 deletions

File diff suppressed because it is too large Load diff

View file

@ -16,6 +16,11 @@ buildPythonPackage rec {
sha256 = "sha256-WIt7yGceILzVhegluiSb7w3F9qQvI5DjulheGsJrcf8=";
};
patches = [
# undo a hack from upstream that confuses our build hook
./fix-build.patch
];
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};

View file

@ -0,0 +1,12 @@
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,5 @@
-# the "wheel" crate is excluded from the workspace because pyo3 has problems with
-# "cargo test" and "cargo bench"
[workspace]
-members = ["wasm", "chia_streamable_macro", "chia-bls", "clvm-utils", "chia-protocol", "chia_py_streamable_macro"]
-exclude = ["wheel"]
+members = ["wasm", "wheel", "chia_streamable_macro", "chia-bls", "clvm-utils", "chia-protocol", "chia_py_streamable_macro"]
[package]
name = "chia"