evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / glances-api / default.nix
blob0f0f222805790c3e9a6338634d0130e12386f48f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch2,
6   httpx,
7   poetry-core,
8   pytest-asyncio,
9   pytest-httpx,
10   pytestCheckHook,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "glances-api";
16   version = "0.8.0";
17   pyproject = true;
19   disabled = pythonOlder "3.11";
21   src = fetchFromGitHub {
22     owner = "home-assistant-ecosystem";
23     repo = "python-glances-api";
24     rev = "refs/tags/${version}";
25     hash = "sha256-QAnwFX53jf7yWWa308/XTARNw5Qeo9K2zfD+6+HiFuM=";
26   };
28   patches = [
29     (fetchpatch2 {
30       name = "pytest-httpx-compat.patch";
31       url = "https://github.com/home-assistant-ecosystem/python-glances-api/commit/f193472a25469e7e4b946f9a1c3a7a95949c6c04.patch";
32       hash = "sha256-hFeWv2WdbdeoaHgAOmwtBwWwPLjJzyurTZDV98qR7F8=";
33     })
34   ];
36   build-system = [ poetry-core ];
38   dependencies = [ httpx ];
40   nativeCheckInputs = [
41     pytest-asyncio
42     pytest-httpx
43     pytestCheckHook
44   ];
46   pythonImportsCheck = [ "glances_api" ];
48   meta = with lib; {
49     description = "Python API for interacting with Glances";
50     homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
51     changelog = "https://github.com/home-assistant-ecosystem/python-glances-api/releases/tag/${version}";
52     license = with licenses; [ mit ];
53     maintainers = with maintainers; [ fab ];
54   };