python3Packages.aionanoleaf: init at 0.0.2

This commit is contained in:
Fabian Affolter 2021-10-01 08:15:40 +02:00
parent ca2ece2bd4
commit 8b08997383
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 { }; aiomysql = callPackage ../development/python-modules/aiomysql { };
aionanoleaf = callPackage ../development/python-modules/aionanoleaf { };
aionotify = callPackage ../development/python-modules/aionotify { }; aionotify = callPackage ../development/python-modules/aionotify { };
aionotion = callPackage ../development/python-modules/aionotion { }; aionotion = callPackage ../development/python-modules/aionotion { };