42 lines
901 B
Nix
42 lines
901 B
Nix
![]() |
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, poetry-core
|
||
|
, home-assistant
|
||
|
, python
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "homeassistant-stubs";
|
||
|
version = "2023.3.0";
|
||
|
format = "pyproject";
|
||
|
|
||
|
disabled = python.version != home-assistant.python.version;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "KapJI";
|
||
|
repo = "homeassistant-stubs";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-svFp3MYj+DIwCT9+/G+lYPRwxGMtJbJQuBD5e+5r0Z4=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
poetry-core
|
||
|
home-assistant
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"homeassistant-stubs"
|
||
|
];
|
||
|
|
||
|
doCheck = false;
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Typing stubs for Home Assistant Core";
|
||
|
homepage = "https://github.com/KapJI/homeassistant-stubs";
|
||
|
changelog = "https://github.com/KapJI/homeassistant-stubs/releases/tag/${version}";
|
||
|
license = licenses.mit;
|
||
|
maintainers = teams.home-assistant.members;
|
||
|
};
|
||
|
}
|