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