Merge pull request #158037 from fabaff/Adax-local
This commit is contained in:
commit
330f3b60d0
3 changed files with 47 additions and 1 deletions
43
pkgs/development/python-modules/adax-local/default.nix
Normal file
43
pkgs/development/python-modules/adax-local/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue