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
, fetchPypi
# build
, antlr4
# propagates
, antlr4-python3-runtime
, dataclasses-json
@ -13,7 +16,7 @@
let
pname = "hassil";
version = "0.1.3";
version = "0.1.4";
in
buildPythonPackage {
inherit pname version;
@ -21,11 +24,17 @@ buildPythonPackage {
src = fetchPypi {
inherit pname version;
hash = "sha256-KWkzHWMo50OIrZ2kwFhhqDSleFFkAD7/JugjvSyCkww=";
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 = [

View file

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