1{ lib, buildPythonPackage, fetchPypi, requests }: 2 3buildPythonPackage rec { 4 pname = "nanoleaf"; 5 version = "0.4.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "17dmxibfjmwnrs6ng5cmvfis3cv6iw267xb8n1pijy15y9dz0s8s"; 10 }; 11 12 prePatch = '' 13 sed -i '/^gitVersion =/d' setup.py 14 substituteInPlace setup.py --replace 'gitVersion' '"${version}"' 15 ''; 16 17 propagatedBuildInputs = [ requests ]; 18 19 meta = with lib; { 20 description = "A python interface for Nanoleaf Aurora lighting"; 21 homepage = "https://github.com/software-2/nanoleaf"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ elseym ]; 24 }; 25}