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