10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-3rID2epV1pCwpofFf9Wuafs1SlBWH7e7/4HPaSUAriQ=";
21 cargoHash = "sha256-hPyPMQm/Oege0PPjYIrd1fEDOGqoQ1ffS2l6o8je4t4=";
23 buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
25 # Requires network access, fails in sandbox.
28 passthru.tests.pyo3 = callPackage ./pyo3-test {};
31 description = "Build and publish Rust crates Python packages";
32 mainProgram = "maturin";
34 Build and publish Rust crates with PyO3, rust-cpython, and
35 cffi bindings as well as Rust binaries as Python packages.
37 This project is meant as a zero-configuration replacement for
38 setuptools-rust and Milksnake. It supports building wheels for
39 Python and can upload them to PyPI.
41 homepage = "https://github.com/PyO3/maturin";
42 changelog = "https://github.com/PyO3/maturin/blob/v${version}/Changelog.md";
43 license = with licenses; [ asl20 /* or */ mit ];