File tree Expand file tree Collapse file tree
pkgs/development/python-modules/cairo-lang Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131
3232buildPythonPackage 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.
You can’t perform that action at this time.
0 commit comments