mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
4c40111f1d
The changelog is not updated, so this has to do: https://github.com/PyO3/maturin/compare/v0.8.1...v0.8.2
36 lines
981 B
Nix
36 lines
981 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkgconfig
|
|
, darwin }:
|
|
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
in rustPlatform.buildRustPackage rec {
|
|
name = "maturin-${version}";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyO3";
|
|
repo = "maturin";
|
|
rev = "v${version}";
|
|
sha256 = "1y6bxqbv7k8xvqjzgpf6n2n3yad4qxr2dwwlw8cb0knd7cfl2a2n";
|
|
};
|
|
|
|
cargoSha256 = "1f12k6n58ycv79bv416566fnsnsng8jk3f6fy5j78py1qgy30swm";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gmp openssl ]
|
|
++ stdenv.lib.optional stdenv.isDarwin Security
|
|
++ stdenv.lib.optional stdenv.isLinux dbus;
|
|
|
|
# Requires network access, fails in sandbox.
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Build and publish crates with pyo3 bindings as python packages";
|
|
homepage = "https://github.com/PyO3/maturin";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.danieldk ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|