pylyzer: 0.0.76 -> 0.0.77 (#374480)

This commit is contained in:
Gaétan Lepage
2025-01-17 09:53:19 +01:00
committed by GitHub
+4 -19
View File
@@ -7,24 +7,23 @@
python3,
makeWrapper,
writeScriptBin,
which,
nix-update-script,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "pylyzer";
version = "0.0.76";
version = "0.0.77";
src = fetchFromGitHub {
owner = "mtshiba";
repo = "pylyzer";
tag = "v${version}";
hash = "sha256-1WBZ8i/JIIRRH11MNQma/o9VdMvN0eYopXt7Iwj1hZ8=";
hash = "sha256-MlDW3dNe9fdOzWp38VkjgoiqOYgBF+ezwTQE0+6SXCc=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-dzp7HeEfM6UP3VgH56CQvnezZjg13YUszA+EsO2N4Os=";
cargoHash = "sha256-bkYRPwiB2BN4WNZ0HcOBiDbFyidftbHWyIDvJasnePc=";
nativeBuildInputs = [
git
@@ -45,20 +44,6 @@ rustPlatform.buildRustPackage rec {
cp -r $HOME/.erg/ $out/lib/erg
'';
nativeCheckInputs = [ which ];
checkFlags =
[
# this test causes stack overflow
# > thread 'exec_import' has overflowed its stack
"--skip=exec_import"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
# Dict({Str..Obj: Int}) does not implement Iterable(Str..Obj..Obj) and Indexable({"a"}..Obj, Int)
# https://github.com/mtshiba/pylyzer/issues/114
"--skip=exec_casting"
];
postFixup = ''
wrapProgram $out/bin/pylyzer --set ERG_PATH $out/lib/erg
'';