nixpkgs/pkgs/servers/home-assistant/intents.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
893 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
2023-08-20 08:50:04 +00:00
, 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=";
};
2023-08-20 08:50:04 +00:00
postPatch = ''
substituteInPlace pyproject.toml --replace-fail \
'requires = ["setuptools~=62.3", "wheel~=0.37.1"]' \
'requires = ["setuptools"]'
2023-08-20 08:50:04 +00:00
'';
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;
};
}