1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "aiooncue";
11 version = "0.3.7";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "bdraco";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-TKOpx+twnG9zj7RcwOn53ebT7eyLOFKyxChp9lCdoU8=";
21 };
22
23 propagatedBuildInputs = [ aiohttp ];
24
25 # Module doesn't have tests
26 doCheck = false;
27
28 postPatch = ''
29 substituteInPlace setup.py \
30 --replace '"pytest-runner",' ""
31 '';
32
33 pythonImportsCheck = [ "aiooncue" ];
34
35 meta = with lib; {
36 description = "Module to interact with the Kohler Oncue API";
37 homepage = "https://github.com/bdraco/aiooncue";
38 license = with licenses; [ asl20 ];
39 maintainers = with maintainers; [ fab ];
40 };
41}