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