mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
python3Packages.hassil: init at 0.1.3
This commit is contained in:
parent
c561e4010a
commit
e0beb61e60
48
pkgs/development/python-modules/hassil/default.nix
Normal file
48
pkgs/development/python-modules/hassil/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
|
||||
# propagates
|
||||
, antlr4-python3-runtime
|
||||
, dataclasses-json
|
||||
, pyyaml
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "hassil";
|
||||
version = "0.1.3";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-KWkzHWMo50OIrZ2kwFhhqDSleFFkAD7/JugjvSyCkww=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements.txt
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
antlr4-python3-runtime
|
||||
dataclasses-json
|
||||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/home-assistant/hassil/releases/tag/v${version}";
|
||||
description = "Intent parsing for Home Assistant";
|
||||
homepage = "https://github.com/home-assistant/hassil";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.home-assistant.members;
|
||||
};
|
||||
}
|
@ -4169,6 +4169,8 @@ self: super: with self; {
|
||||
|
||||
hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { };
|
||||
|
||||
hassil = callPackage ../development/python-modules/hassil { };
|
||||
|
||||
hatasmota = callPackage ../development/python-modules/hatasmota { };
|
||||
|
||||
hatchling = callPackage ../development/python-modules/hatchling { };
|
||||
|
Loading…
Reference in New Issue
Block a user