depot/third_party/nixpkgs/pkgs/development/python-modules/hassil/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

52 lines
975 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
# dependencies
pyyaml,
unicode-rbnf,
# tests
pytestCheckHook,
}:
let
pname = "hassil";
version = "1.7.1";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "home-assistant";
repo = "hassil";
rev = "refs/tags/${version}";
hash = "sha256-yrjzsJzyUFqTauEcNEOCQx2YxomkNS4J0JfQEQQ5m3E=";
};
build-system = [ setuptools ];
dependencies = [
pyyaml
unicode-rbnf
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/home-assistant/hassil/blob/v${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;
};
}