Merge pull request #208219 from mweinelt/hassil-0.1.4

python3Packages.hassil: 0.1.3 -> 0.1.4
This commit is contained in:
Jörg Thalheim 2023-01-02 19:19:27 +00:00 committed by GitHub
commit c735db25e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -2,6 +2,9 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
# build
, antlr4
# propagates # propagates
, antlr4-python3-runtime , antlr4-python3-runtime
, dataclasses-json , dataclasses-json
@ -13,7 +16,7 @@
let let
pname = "hassil"; pname = "hassil";
version = "0.1.3"; version = "0.1.4";
in in
buildPythonPackage { buildPythonPackage {
inherit pname version; inherit pname version;
@ -21,11 +24,17 @@ buildPythonPackage {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-KWkzHWMo50OIrZ2kwFhhqDSleFFkAD7/JugjvSyCkww="; hash = "sha256-ygaPdfH2jBk2xvlgt7V8/VcZAtv6Lwsi8g+stK/DdT8=";
}; };
nativeBuildInputs = [
antlr4
];
postPatch = '' postPatch = ''
sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements.txt 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 = [ propagatedBuildInputs = [

View file

@ -7958,6 +7958,8 @@ with pkgs;
haskell-language-server = callPackage ../development/tools/haskell/haskell-language-server/withWrapper.nix { }; haskell-language-server = callPackage ../development/tools/haskell/haskell-language-server/withWrapper.nix { };
hassil = with python3Packages; toPythonApplication hassil;
hasmail = callPackage ../applications/networking/mailreaders/hasmail { }; hasmail = callPackage ../applications/networking/mailreaders/hasmail { };
haste-client = callPackage ../tools/misc/haste-client { }; haste-client = callPackage ../tools/misc/haste-client { };