Merge pull request #140122 from fabaff/aionanoleaf

python3Packages.aionanoleaf: init at 0.0.2
This commit is contained in:
Fabian Affolter 2021-10-03 22:56:35 +02:00 committed by GitHub
commit 1a71640a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aionanoleaf";
version = "0.0.2";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "milanmeu";
repo = pname;
rev = "v${version}";
sha256 = "1fmzmbsmfsa1ixxcz8vckg8qmsip8y7gih1j23jrlfbjm9s5jf5p";
};
propagatedBuildInputs = [
aiohttp
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "aionanoleaf" ];
meta = with lib; {
description = "Python wrapper for the Nanoleaf API";
homepage = "https://github.com/milanmeu/aionanoleaf";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -341,6 +341,8 @@ in {
aiomysql = callPackage ../development/python-modules/aiomysql { };
aionanoleaf = callPackage ../development/python-modules/aionanoleaf { };
aionotify = callPackage ../development/python-modules/aionotify { };
aionotion = callPackage ../development/python-modules/aionotion { };