nixpkgs-suyu/pkgs/development/python-modules/aionanoleaf/default.nix
2022-02-07 18:59:09 -08:00

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 ];
};
}