1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-23 17:56:53 +03:00
nixpkgs/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix
2024-05-22 17:32:03 +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
'';
}