1{ stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pytest, mock }: 2 3buildPythonPackage rec { 4 pname = "wakeonlan"; 5 version = "1.1.6"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9"; 10 }; 11 12 postPatch = '' 13 substituteInPlace setup.py \ 14 --replace "setuptools-scm ~= 1.15.7" "setuptools-scm" 15 ''; 16 17 checkInputs = [ pytest mock ]; 18 19 nativeBuildInputs = [ setuptools_scm ]; 20 21 checkPhase = '' 22 py.test 23 ''; 24 25 meta = with stdenv.lib; { 26 description = "A small python module for wake on lan"; 27 homepage = https://github.com/remcohaszing/pywakeonlan; 28 license = licenses.wtfpl; 29 maintainers = with maintainers; [ peterhoeg ]; 30 }; 31}