nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 944 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 python3, 6 versionCheckHook, 7 nix-update-script, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "rustpython"; 12 version = "0.4.0"; 13 14 src = fetchFromGitHub { 15 owner = "RustPython"; 16 repo = "RustPython"; 17 tag = version; 18 hash = "sha256-BYYqvPJu/eFJ9lt07A0p7pd8pGFccUe/okFqGEObhY4="; 19 }; 20 21 cargoHash = "sha256-LuxET01n5drYmPXXhCl0Cs9yoCQKwWah8FWfmKmLdsg="; 22 23 # freeze the stdlib into the rustpython binary 24 cargoBuildFlags = [ "--features=freeze-stdlib" ]; 25 26 nativeCheckInputs = [ python3 ]; 27 28 nativeInstallCheckInputs = [ 29 versionCheckHook 30 ]; 31 doInstallCheck = true; 32 33 passthru = { 34 updateScript = nix-update-script { }; 35 }; 36 37 meta = { 38 description = "Python 3 interpreter in written Rust"; 39 homepage = "https://rustpython.github.io"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ prusnak ]; 42 mainProgram = "rustpython"; 43 }; 44}