diff options
author | Kasper Gałkowski <k@galkowski.xyz> | 2023-03-14 17:03:07 +0100 |
---|---|---|
committer | Kasper Gałkowski <k@galkowski.xyz> | 2023-03-14 17:07:39 +0100 |
commit | e5eb0322a2f7c235c64662b4dce720b62111fc88 (patch) | |
tree | 71ebb5b481e62b15362414a03c7f3fe1bfc1e67c /pkgs/development/python-modules/hassil/default.nix | |
parent | 97ec9764a4c2a23eef5c505183c858a3ae80606c (diff) | |
parent | 9e91539bb454af74b2e8f012e1aae08cb8abd9ff (diff) |
merge master
Diffstat (limited to 'pkgs/development/python-modules/hassil/default.nix')
-rw-r--r-- | pkgs/development/python-modules/hassil/default.nix | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/hassil/default.nix b/pkgs/development/python-modules/hassil/default.nix index c8949968536c6..1b80c9a4986e1 100644 --- a/pkgs/development/python-modules/hassil/default.nix +++ b/pkgs/development/python-modules/hassil/default.nix @@ -1,13 +1,10 @@ { lib , buildPythonPackage , fetchPypi - -# build -, antlr4 +, pythonOlder # propagates -, antlr4-python3-runtime -, dataclasses-json +, importlib-resources , pyyaml # tests @@ -16,7 +13,7 @@ let pname = "hassil"; - version = "0.2.6"; + version = "1.0.6"; in buildPythonPackage { inherit pname version; @@ -24,23 +21,13 @@ buildPythonPackage { src = fetchPypi { inherit pname version; - hash = "sha256-KbzGZLW+HrG4meOa0mVTh3jmt43gRxl9yN9asWMDxiY="; + hash = "sha256-rCSVKFIkfPg2aYFwuYVLMxMO8S11dV8f4eckpFbNB3k="; }; - 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 = [ - antlr4-python3-runtime - dataclasses-json pyyaml + ] ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources ]; nativeCheckInputs = [ |