depot/third_party/nixpkgs/pkgs/servers/home-assistant/pytest-homeassistant-custom-component.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

58 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
aiohttp,
bcrypt,
freezegun,
homeassistant,
pytest-asyncio,
pytest-socket,
requests-mock,
syrupy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-homeassistant-custom-component";
version = "0.13.147";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "MatthewFlamm";
repo = "pytest-homeassistant-custom-component";
rev = "refs/tags/${version}";
hash = "sha256-FivgP0tKmu9QKPSVU9c/3SNduyKoSeAquHysdHSs11E=";
};
build-system = [ setuptools ];
pythonRemoveDeps = true;
dependencies = [
aiohttp
bcrypt
freezegun
homeassistant
pytest-asyncio
pytest-socket
requests-mock
syrupy
];
pythonImportsCheck = [ "pytest_homeassistant_custom_component.plugins" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/blob/${src.rev}/CHANGELOG.md";
description = "Package to automatically extract testing plugins from Home Assistant for custom component testing";
homepage = "https://github.com/MatthewFlamm/pytest-homeassistant-custom-component";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}