at master 915 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 requests, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "nanoleaf"; 12 version = "0.4.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-GmnwW/IleBlvsGj1YwSPZrOho9uVlWeNzpZX6VbstZ0="; 20 }; 21 22 prePatch = '' 23 sed -i '/^gitVersion =/d' setup.py 24 substituteInPlace setup.py \ 25 --replace-fail 'gitVersion' '"${version}"' 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ requests ]; 31 32 # Module has no test 33 doCheck = false; 34 35 pythonImportsCheck = [ "nanoleaf" ]; 36 37 meta = with lib; { 38 description = "Module for interacting with Nanoleaf Aurora lighting"; 39 homepage = "https://github.com/software-2/nanoleaf"; 40 changelog = "https://github.com/software-2/nanoleaf/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = [ ]; 43 }; 44}