Unverified Commit a3db0218 authored by Pavol Rusnak's avatar Pavol Rusnak Committed by GitHub
Browse files

rustpython: 0.4.0 -> 0.5.0 (#507262)

parents 0e152865 fcc67667
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
{
  lib,
  libffi,
  rustPlatform,
  fetchFromGitHub,
  python3,
@@ -9,20 +10,22 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "rustpython";
  version = "0.4.0";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "RustPython";
    repo = "RustPython";
    tag = finalAttrs.version;
    hash = "sha256-BYYqvPJu/eFJ9lt07A0p7pd8pGFccUe/okFqGEObhY4=";
    hash = "sha256-rjDJXXR1ByFubZtzy70DZKur6nqVmufd3TqwxN1s9kE=";
  };

  cargoHash = "sha256-LuxET01n5drYmPXXhCl0Cs9yoCQKwWah8FWfmKmLdsg=";
  cargoHash = "sha256-I+yeaMN5wxt+l4I8qUPq2fk+OER8/QxeHAKtvvYIV9Y=";

  # freeze the stdlib into the rustpython binary
  cargoBuildFlags = [ "--features=freeze-stdlib" ];

  buildInputs = [ libffi ];

  nativeCheckInputs = [ python3 ];

  nativeInstallCheckInputs = [
@@ -38,7 +41,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
    description = "Python 3 interpreter in written Rust";
    homepage = "https://rustpython.github.io";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ prusnak ];
    maintainers = with lib.maintainers; [
      prusnak
      miniharinn
    ];
    mainProgram = "rustpython";
  };
})