2021-02-18 08:23:03 +00:00
|
|
|
{ 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
|
|
|
|
]);
|
|
|
|
|
2021-03-20 07:38:14 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# sourceRoot puts Cargo.lock in the wrong place due to the
|
|
|
|
# example setup.
|
|
|
|
cd examples/word-count
|
|
|
|
'';
|
2021-02-18 08:23:03 +00:00
|
|
|
}
|