mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
python3Packages.hassil: regenerate antlr files
This commit is contained in:
parent
056100ec27
commit
4d4b37d44f
@ -2,6 +2,9 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
|
||||
# build
|
||||
, antlr4
|
||||
|
||||
# propagates
|
||||
, antlr4-python3-runtime
|
||||
, dataclasses-json
|
||||
@ -24,8 +27,14 @@ buildPythonPackage {
|
||||
hash = "sha256-ygaPdfH2jBk2xvlgt7V8/VcZAtv6Lwsi8g+stK/DdT8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
antlr4
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements.txt
|
||||
rm hassil/grammar/*.{tokens,interp}
|
||||
antlr -Dlanguage=Python3 -visitor -o hassil/grammar/ *.g4
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user