evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / aiohue / default.nix
blobe681b6026a2851794ea23380a87165b4b98161d2
2   lib,
3   aiohttp,
4   asyncio-throttle,
5   awesomeversion,
6   buildPythonPackage,
7   fetchFromGitHub,
8   pytestCheckHook,
9   pytest-aiohttp,
10   pytest-asyncio,
11   pythonOlder,
12   setuptools,
15 buildPythonPackage rec {
16   pname = "aiohue";
17   version = "4.7.3";
18   pyproject = true;
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "home-assistant-libs";
24     repo = "aiohue";
25     rev = "refs/tags/${version}";
26     hash = "sha256-uS6pyJOntjbGa9UU1g53nuzgfP6AKAzN4meHrZY6Uic=";
27   };
29   postPatch = ''
30     substituteInPlace pyproject.toml \
31       --replace-fail 'version = "0.0.0"' 'version = "${version}"' \
32       --replace-fail "--cov" ""
33   '';
35   build-system = [ setuptools ];
37   dependencies = [
38     awesomeversion
39     aiohttp
40     asyncio-throttle
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45     pytest-asyncio
46     pytest-aiohttp
47   ];
49   pythonImportsCheck = [
50     "aiohue"
51     "aiohue.discovery"
52   ];
54   disabledTestPaths = [
55     # File are prefixed with test_
56     "examples/"
57   ];
59   meta = with lib; {
60     description = "Python package to talk to Philips Hue";
61     homepage = "https://github.com/home-assistant-libs/aiohue";
62     changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${version}";
63     license = with licenses; [ asl20 ];
64     maintainers = with maintainers; [ fab ];
65   };