3bdae33948
The test builds the PyO3 word_count example module using setuptools-rust. The motivation is to have a trivial test that does not regress for reasons unrelated to setuptools-rust or hook updates.
22 lines
472 B
Nix
22 lines
472 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
|
|
]);
|
|
|
|
sourceRoot = "source/examples/word-count";
|
|
}
|