Merge pull request #109282 from fabaff/aiokef

This commit is contained in:
Sandro 2021-01-13 19:04:17 +01:00 committed by GitHub
commit c99459e02f
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,44 @@
{ lib
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
, pytest-mypy
, pythonOlder
, tenacity
}:
buildPythonPackage rec {
pname = "aiokef";
version = "0.2.17";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "basnijholt";
repo = pname;
rev = "v${version}";
sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9";
};
propagatedBuildInputs = [
async-timeout
tenacity
];
checkInputs = [
pytest-cov
pytest-mypy
pytestCheckHook
];
pytestFlagsArray = [ "tests" ];
pythonImportsCheck = [ "aiokef" ];
meta = with lib; {
description = "Python API for KEF speakers";
homepage = "https://github.com/basnijholt/aiokef";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -413,7 +413,7 @@
"kankun" = ps: with ps; [ ];
"keba" = ps: with ps; [ ]; # missing inputs: keba-kecontact
"keenetic_ndms2" = ps: with ps; [ ]; # missing inputs: ndms2_client
"kef" = ps: with ps; [ getmac ]; # missing inputs: aiokef
"kef" = ps: with ps; [ aiokef getmac ];
"keyboard" = ps: with ps; [ ]; # missing inputs: pyuserinput
"keyboard_remote" = ps: with ps; [ aionotify evdev ];
"kira" = ps: with ps; [ ]; # missing inputs: pykira

View File

@ -242,6 +242,8 @@ in {
aiokafka = callPackage ../development/python-modules/aiokafka { };
aiokef = callPackage ../development/python-modules/aiokef { };
aiolifx = callPackage ../development/python-modules/aiolifx { };
aiolifx-effects = callPackage ../development/python-modules/aiolifx-effects { };