Skip to content

Commit 25de652

Browse files
committed
python3Packages.cairo-lang: 0.10.0 -> 0.10.1
1 parent 901f07f commit 25de652

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

pkgs/development/python-modules/cairo-lang/default.nix

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,16 @@
3131

3232
buildPythonPackage rec {
3333
pname = "cairo-lang";
34-
version = "0.10.0";
34+
version = "0.10.1";
3535
format = "setuptools";
3636

3737
disabled = pythonOlder "3.7";
3838

3939
src = fetchzip {
4040
url = "https://github.com/starkware-libs/cairo-lang/releases/download/v${version}/cairo-lang-${version}.zip";
41-
hash = "sha256-+PE7RSKEGADbue63FoT6UBOwURJs7lBNkL7aNlpSxP8=";
41+
hash = "sha256-MNbzDqqNhij9JizozLp9hhQjbRGzWxECOErS3TOPlAA=";
4242
};
4343

44-
# TODO: remove a substantial part when https://github.com/starkware-libs/cairo-lang/pull/88/files is merged.
45-
postPatch = ''
46-
substituteInPlace requirements.txt \
47-
--replace "lark-parser" "lark"
48-
49-
substituteInPlace starkware/cairo/lang/compiler/parser_transformer.py \
50-
--replace 'value, meta' 'meta, value' \
51-
--replace 'value: Tuple[CommaSeparatedWithNotes], meta' 'meta, value: Tuple[CommaSeparatedWithNotes]'
52-
substituteInPlace starkware/cairo/lang/compiler/parser.py \
53-
--replace 'standard' 'basic'
54-
'';
55-
5644
nativeBuildInputs = [
5745
pythonRelaxDepsHook
5846
];
@@ -99,6 +87,10 @@ buildPythonPackage rec {
9987
"pytest-asyncio"
10088
];
10189

90+
postFixup = ''
91+
chmod +x $out/bin/*
92+
'';
93+
10294
# There seems to be no test included in the ZIP release…
10395
# Cloning from GitHub is harder because they use a custom CMake setup
10496
# TODO(raitobezarius): upstream was pinged out of band about it.

0 commit comments

Comments
 (0)