1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "aionanoleaf"; 11 version = "0.2.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "milanmeu"; 18 repo = "aionanoleaf"; 19 tag = "v${version}"; 20 hash = "sha256-f0TyXhuAzI0s0n6sXH9mKWA4nad2YchZkQ0+jw/Bmv0="; 21 }; 22 23 propagatedBuildInputs = [ aiohttp ]; 24 25 # Project has no tests 26 doCheck = false; 27 28 pythonImportsCheck = [ "aionanoleaf" ]; 29 30 meta = with lib; { 31 description = "Python wrapper for the Nanoleaf API"; 32 homepage = "https://github.com/milanmeu/aionanoleaf"; 33 changelog = "https://github.com/milanmeu/aionanoleaf/releases/tag/v${version}"; 34 license = licenses.lgpl3Plus; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}