evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / go2rtc-client / default.nix
blob8d110afbbee36cf01ba47a082a337bacd36c00d2
2   lib,
3   aiohttp,
4   aioresponses,
5   awesomeversion,
6   buildPythonPackage,
7   fetchFromGitHub,
8   hatchling,
9   mashumaro,
10   orjson,
11   pytest-asyncio,
12   pytest-cov-stub,
13   pytestCheckHook,
14   pythonOlder,
15   syrupy,
16   webrtc-models,
19 buildPythonPackage rec {
20   pname = "go2rtc-client";
21   version = "0.1.0";
22   pyproject = true;
24   disabled = pythonOlder "3.12";
26   src = fetchFromGitHub {
27     owner = "home-assistant-libs";
28     repo = "python-go2rtc-client";
29     rev = "refs/tags/${version}";
30     hash = "sha256-oVPZtPRlm3CmTBfxXm66BOOZVQ39DsR+WmkoAdHp4eQ=";
31   };
33   postPatch = ''
34     substituteInPlace pyproject.toml \
35       --replace-fail 'version = "0.0.0"' 'version = "${version}"'
36   '';
38   pythonRelaxDeps = [ "orjson" ];
40   build-system = [ hatchling ];
42   dependencies = [
43     aiohttp
44     awesomeversion
45     mashumaro
46     orjson
47     webrtc-models
48   ];
50   nativeCheckInputs = [
51     aioresponses
52     pytest-asyncio
53     pytest-cov-stub
54     pytestCheckHook
55     syrupy
56   ];
58   pythonImportsCheck = [ "go2rtc_client" ];
60   meta = {
61     description = "Module for interacting with go2rtc";
62     homepage = "https://github.com/home-assistant-libs/python-go2rtc-client";
63     changelog = "https://github.com/home-assistant-libs/python-go2rtc-client/releases/tag/${version}";
64     license = lib.licenses.asl20;
65     maintainers = with lib.maintainers; [ ];
66   };