forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / servers / home-assistant / pytest-homeassistant-custom-component.nix
blobfefbf501f1d22c808817c57f816b3d5781d4eef8
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   aiohttp,
8   bcrypt,
9   freezegun,
10   homeassistant,
11   pytest-asyncio,
12   pytest-socket,
13   requests-mock,
14   respx,
15   syrupy,
16   pytestCheckHook,
19 buildPythonPackage rec {
20   pname = "pytest-homeassistant-custom-component";
21   version = "0.13.180";
22   pyproject = true;
24   disabled = pythonOlder "3.12";
26   src = fetchFromGitHub {
27     owner = "MatthewFlamm";
28     repo = "pytest-homeassistant-custom-component";
29     rev = "refs/tags/${version}";
30     hash = "sha256-OLCGoZ5C39D4yYJagowO914qJlQcJVScm/a1ZbR2alM=";
31   };
33   build-system = [ setuptools ];
35   pythonRemoveDeps = true;
37   dependencies = [
38     aiohttp
39     bcrypt
40     freezegun
41     homeassistant
42     pytest-asyncio
43     pytest-socket
44     requests-mock
45     respx
46     syrupy
47   ];
49   pythonImportsCheck = [ "pytest_homeassistant_custom_component.plugins" ];
51   nativeCheckInputs = [ pytestCheckHook ];
53   meta = {
54     changelog = "https://github.com/MatthewFlamm/pytest-homeassistant-custom-component/blob/${src.rev}/CHANGELOG.md";
55     description = "Package to automatically extract testing plugins from Home Assistant for custom component testing";
56     homepage = "https://github.com/MatthewFlamm/pytest-homeassistant-custom-component";
57     license = lib.licenses.mit;
58     maintainers = with lib.maintainers; [ dotlambda ];
59   };