depot/third_party/nixpkgs/pkgs/development/python-modules/hassil/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

52 lines
974 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
# dependencies
pyyaml,
unicode-rbnf,
# tests
pytestCheckHook,
}:
let
pname = "hassil";
version = "1.7.4";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "home-assistant";
repo = "hassil";
rev = "refs/tags/${version}";
hash = "sha256-FRP5iVE2KBiHVriWhnYxWFff0y4q2/gC9iO8ZzN3AbI=";
};
build-system = [ setuptools ];
dependencies = [
pyyaml
unicode-rbnf
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/home-assistant/hassil/blob/${version}/CHANGELOG.md";
description = "Intent parsing for Home Assistant";
mainProgram = "hassil";
homepage = "https://github.com/home-assistant/hassil";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}