9 buildPythonPackage rec {
10 pname = "homeassistant-stubs";
14 disabled = python.version != home-assistant.python.version;
16 src = fetchFromGitHub {
18 repo = "homeassistant-stubs";
19 rev = "refs/tags/${version}";
20 hash = "sha256-4n1dnQX7Mo2vFCrSUUAvdO3ZErBKK6oUCITazI9PlIQ=";
29 # Relax constraint to year and month
30 substituteInPlace pyproject.toml --replace-fail \
31 'homeassistant = "${version}"' \
32 'homeassistant = "~${lib.versions.majorMinor home-assistant.version}"'
35 pythonImportsCheck = [
42 description = "Typing stubs for Home Assistant Core";
43 homepage = "https://github.com/KapJI/homeassistant-stubs";
44 changelog = "https://github.com/KapJI/homeassistant-stubs/releases/tag/${version}";
45 license = licenses.mit;
46 maintainers = teams.home-assistant.members;