Merge pull request #217763 from mweinelt/hass-stubs

Typing stubs for home-assistant type checks

authored by Martin Weinelt and committed by GitHub 96a3979a c124490a

+75
+33
pkgs/development/python-modules/voluptuous-stubs/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , mypy 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "voluptuous-stubs"; 9 + version = "0.1.1"; 10 + format = "setuptools"; 11 + 12 + src = fetchPypi { 13 + inherit pname version; 14 + hash = "sha256-cPscCIJC8g4RAjJStWSM13+DH2ks2RDI+XE8wTXPjMg="; 15 + }; 16 + 17 + nativeBuildInputs = [ 18 + mypy 19 + ]; 20 + 21 + pythonImportsCheck = [ 22 + "voluptuous-stubs" 23 + ]; 24 + 25 + doCheck = false; 26 + 27 + meta = with lib; { 28 + description = "Typing stubs for voluptuous"; 29 + homepage = "https://github.com/ryanwang520/voluptuous-stubs"; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ hexa ]; 32 + }; 33 + }
+38
pkgs/servers/home-assistant/stubs.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , poetry-core 5 + , home-assistant 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "homeassistant-stubs"; 10 + version = "2023.2.5"; 11 + format = "pyproject"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "KapJI"; 15 + repo = "homeassistant-stubs"; 16 + rev = "refs/tags/${version}"; 17 + hash = "sha256-MQYk4DWvmqtPl00L1c00JclKkTZe9EYMrm/LucUHBE0="; 18 + }; 19 + 20 + nativeBuildInputs = [ 21 + poetry-core 22 + home-assistant 23 + ]; 24 + 25 + pythonImportsCheck = [ 26 + "homeassistant-stubs" 27 + ]; 28 + 29 + doCheck = false; 30 + 31 + meta = with lib; { 32 + description = "Typing stubs for Home Assistant Core"; 33 + homepage = "https://github.com/KapJI/homeassistant-stubs"; 34 + changelog = "https://github.com/KapJI/homeassistant-stubs/releases/tag/${version}"; 35 + license = licenses.mit; 36 + maintainers = teams.home-assistant.members; 37 + }; 38 + }
+4
pkgs/top-level/python-packages.nix
··· 4378 4378 4379 4379 homeassistant-pyozw = callPackage ../development/python-modules/homeassistant-pyozw { }; 4380 4380 4381 + homeassistant-stubs = callPackage ../servers/home-assistant/stubs.nix { }; 4382 + 4381 4383 homeconnect = callPackage ../development/python-modules/homeconnect { }; 4382 4384 4383 4385 homematicip = callPackage ../development/python-modules/homematicip { }; ··· 12180 12182 voluptuous = callPackage ../development/python-modules/voluptuous { }; 12181 12183 12182 12184 voluptuous-serialize = callPackage ../development/python-modules/voluptuous-serialize { }; 12185 + 12186 + voluptuous-stubs = callPackage ../development/python-modules/voluptuous-stubs { }; 12183 12187 12184 12188 volvooncall = callPackage ../development/python-modules/volvooncall { }; 12185 12189