2021-03-19 17:17:44 +00:00
|
|
|
{ callPackage
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2021-03-19 17:17:44 +00:00
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2021-03-19 17:17:44 +00:00
|
|
|
, 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";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [ setuptools-rust ] ++ [
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# sourceRoot puts Cargo.lock in the wrong place due to the
|
|
|
|
# example setup.
|
|
|
|
cd examples/word-count
|
|
|
|
'';
|
2021-03-19 17:17:44 +00:00
|
|
|
}
|