nixpkgs/pkgs/servers/home-assistant/intents.nix
Martin Weinelt 01ef6421f7
home-assistant.intents: 2024.1.2 -> 2024.2.2
Temporarily switch to source build, because the intents-package repo
content does not match the pypi source.

https://github.com/home-assistant/intents/releases/tag/2024.2.1
https://github.com/home-assistant/intents/releases/tag/2024.2.2
2024-02-10 04:15:37 +01:00

46 lines
892 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, setuptools
}:
buildPythonPackage rec {
pname = "home-assistant-intents";
version = "2024.2.2";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-Tb9ZZvs5Wyzm2TS5INUSua4Y3/2H+kHEhjpfYWJi+d0=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace-fail \
'requires = ["setuptools~=62.3", "wheel~=0.37.1"]' \
'requires = ["setuptools"]'
'';
nativeBuildInputs = [
setuptools
];
# sdist does not ship tests
doCheck = false;
pytestFlagsArray = [
"intents/tests"
];
meta = with lib; {
description = "Intents to be used with Home Assistant";
homepage = "https://github.com/home-assistant/intents";
license = licenses.cc-by-40;
maintainers = teams.home-assistant.members;
};
}