depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
585 B
Nix

{
callPackage,
cargo,
rustPlatform,
rustc,
setuptools-rust,
}:
callPackage ../../../tools/rust/maturin/pyo3-test/generic.nix {
# Isolated builds break for this package, because PyO3 is not
# in the build root of the Python Package:
#
# https://github.com/pypa/pip/issues/6276
#
format = "setuptools";
nativeBuildInputs =
[ setuptools-rust ]
++ [
rustPlatform.cargoSetupHook
cargo
rustc
];
preConfigure = ''
# sourceRoot puts Cargo.lock in the wrong place due to the
# example setup.
cd examples/word-count
'';
}