Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, requests, zeroconf, wakeonlan 3, python }: 4 5buildPythonPackage rec { 6 pname = "openwebifpy"; 7 version = "3.1.1"; 8 disabled = pythonOlder "3.6"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "0zqa74i54ww9qjciiv8s58mxbs6vxq06cq5k4pxfarc0l75l4gh2"; 13 }; 14 15 propagatedBuildInputs = [ 16 requests 17 zeroconf 18 wakeonlan 19 ]; 20 21 checkPhase = '' 22 ${python.interpreter} setup.py test 23 ''; 24 25 meta = with lib; { 26 description = "Provides a python interface to interact with a device running OpenWebIf"; 27 homepage = "https://openwebifpy.readthedocs.io/"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ hexa ]; 30 }; 31} 32