1{ callPackage
2, rustPlatform
3, setuptools-rust
4}:
5
6callPackage ../../../tools/rust/maturin/pyo3-test/generic.nix {
7 # Isolated builds break for this package, because PyO3 is not
8 # in the build root of the Python Package:
9 #
10 # https://github.com/pypa/pip/issues/6276
11 #
12 format = "setuptools";
13
14 nativeBuildInputs = [ setuptools-rust ] ++ (with rustPlatform; [
15 cargoSetupHook
16 rust.cargo
17 rust.rustc
18 ]);
19
20 preConfigure = ''
21 # sourceRoot puts Cargo.lock in the wrong place due to the
22 # example setup.
23 cd examples/word-count
24 '';
25}