Merge pull request #158037 from fabaff/Adax-local

This commit is contained in:
Martin Weinelt 2022-02-03 21:55:55 +01:00 committed by GitHub
commit 330f3b60d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 1 deletions

View file

@ -0,0 +1,43 @@
{ lib
, aiohttp
, bleak
, buildPythonPackage
, fetchFromGitHub
, async-timeout
, pythonOlder
}:
buildPythonPackage rec {
pname = "adax-local";
version = "0.1.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pyAdaxLocal";
rev = version;
hash = "sha256-SGVXzSjtYNRVJN5fUjjskko55/e0L3P8aB90G4HuBOE=";
};
propagatedBuildInputs = [
aiohttp
bleak
async-timeout
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"adax_local"
];
meta = with lib; {
description = "Module for local access to Adax";
homepage = "https://github.com/Danielhiversen/pyAdaxLocal";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -9,7 +9,7 @@
"acer_projector" = ps: with ps; [ pyserial ];
"acmeda" = ps: with ps; [ aiopulse ];
"actiontec" = ps: with ps; [ ];
"adax" = ps: with ps; [ adax ]; # missing inputs: Adax-local
"adax" = ps: with ps; [ adax-local adax ];
"adguard" = ps: with ps; [ adguardhome ];
"ads" = ps: with ps; [ pyads ];
"advantage_air" = ps: with ps; [ advantage-air ];
@ -1037,6 +1037,7 @@
"abode"
"accuweather"
"acmeda"
"adax"
"adguard"
"advantage_air"
"aemet"

View file

@ -194,6 +194,8 @@ in {
adax = callPackage ../development/python-modules/adax { };
adax-local = callPackage ../development/python-modules/adax-local { };
adb-enhanced = callPackage ../development/python-modules/adb-enhanced { };
adb-homeassistant = callPackage ../development/python-modules/adb-homeassistant { };