depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix
Default email 1a0302a145 Project import generated by Copybara.
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
2021-04-12 20:23:04 +02:00

25 lines
564 B
Nix

{ callPackage
, rustPlatform
, 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 ] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
preConfigure = ''
# sourceRoot puts Cargo.lock in the wrong place due to the
# example setup.
cd examples/word-count
'';
}