81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
39 lines
732 B
Nix
39 lines
732 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aionanoleaf";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "milanmeu";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bz568DlodWtSu2WTTd/QMhdiX9IkllW7UYVXuNlKFaY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|