1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
aiohttp,
bcrypt,
freezegun,
homeassistant,
paho-mqtt,
pytest-asyncio,
pytest-socket,
requests-mock,
respx,
syrupy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-homeassistant-custom-component";
version = "0.13.365";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "MatthewFlamm";
repo = "pytest-homeassistant-custom-component";
tag = version;
hash = "sha256-ETvPBSmFySu10Q2MLeKAZNEdb2XnYxTzThSSg6bkG8Y=";
};
patches = [
# e2e tests should write temporary files into a temporary directory instead of into the installation directory aka the nix store
./pytest-homeassistant-custom-component-tmpdir.patch
];
build-system = [ setuptools ];
pythonRemoveDeps = true;
dependencies = [
aiohttp
bcrypt
freezegun
homeassistant
paho-mqtt
pytest-asyncio
pytest-socket
requests-mock
respx
syrupy
];
pythonImportsCheck = [ "pytest_homeassistant_custom_component.plugins" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/blob/${src.tag}/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 ];
};
}
|