45 lines
893 B
Nix
45 lines
893 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
|
|
# build-system
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "home-assistant-intents";
|
|
version = "2024.3.12";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-9oMn5ogHcuopAnXgATu9xlBBBMeWJ9RT5C//xJ5FOBI=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|