pyrefly: init at 0.17.1 (#412863)

This commit is contained in:
Aleksana
2025-06-11 14:08:55 +08:00
committed by GitHub
2 changed files with 61 additions and 0 deletions
+10
View File
@@ -5354,6 +5354,11 @@
githubId = 16950437;
name = "cwyc";
};
cybardev = {
name = "Sheikh";
github = "cybardev";
githubId = 50134239;
};
cybershadow = {
name = "Vladimir Panteleev";
email = "nixpkgs@cy.md";
@@ -20516,6 +20521,11 @@
githubId = 39039420;
name = "Quinn Dougherty";
};
QuiNzX = {
name = "QuiNz-";
github = "QuiNzX";
githubId = 76129478;
};
quodlibetor = {
email = "quodlibetor@gmail.com";
github = "quodlibetor";
+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
];
};
}