pyrefly: init at 0.17.1

Co-authored-by: QuiNzX <76129478+QuiNzX@users.noreply.github.com>
This commit is contained in:
cybardev
2025-06-02 09:48:21 -03:00
co-authored by QuiNzX
parent fa9dd4bf4c
commit b92f1fdc22
+51
View File
@@ -0,0 +1,51 @@
{
lib,
python3,
fetchPypi,
versionCheckHook,
nix-update-script,
rustPlatform,
maturin,
}:
python3.pkgs.buildPythonApplication rec {
pname = "pyrefly";
version = "0.17.1";
pyproject = true;
# fetch from PyPI instead of GitHub, since source repo does not have Cargo.lock
src = fetchPypi {
inherit pname version;
hash = "sha256-w4ivRtmApXiXQT95GI4vvYBop7yxdbbkpW+YTyFtgXM=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-Op5ueVkzZTiJ1zeBGVi8oeLcfSzXMYfk5zEg4OGyA5g=";
};
build-system = [ maturin ];
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
nativeCheckInputs = [ versionCheckHook ];
# requires unstable rust features
env.RUSTC_BOOTSTRAP = 1;
passthru.updateScript = nix-update-script { };
meta = {
description = "Fast type checker and IDE for Python";
homepage = "https://github.com/facebook/pyrefly";
license = lib.licenses.mit;
mainProgram = "pyrefly";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [
cybardev
QuiNzX
];
};
}