nixpkgs-suyu/pkgs/development/tools/rust/maturin/default.nix
Daniël de Kok 05a0bf99c9 maturin: 0.7.1 -> 0.7.2
GitHub release:
https://github.com/PyO3/maturin/releases/tag/v0.7.2

This release provides some cross-compilation fixes.
2019-09-06 19:18:08 +02:00

35 lines
979 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.7.2";
src = fetchFromGitHub {
owner = "PyO3";
repo = "maturin";
rev = "v${version}";
sha256 = "180dynm9qy3mliqai4jfwxbg01jdz2a95bfyar880qmp75f35wi8";
};
cargoSha256 = "1x61kxmbk5mazi3lmzfnixjl584cxkfv16si2smh8d9xhhz6gvpw";
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;
};
}