depot/third_party/nixpkgs/pkgs/development/python-modules/openwebifpy/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

32 lines
710 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, requests, zeroconf, wakeonlan
, python }:
buildPythonPackage rec {
pname = "openwebifpy";
version = "3.1.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0zqa74i54ww9qjciiv8s58mxbs6vxq06cq5k4pxfarc0l75l4gh2";
};
propagatedBuildInputs = [
requests
zeroconf
wakeonlan
];
checkPhase = ''
${python.interpreter} setup.py test
'';
meta = with lib; {
description = "Provides a python interface to interact with a device running OpenWebIf";
homepage = "https://openwebifpy.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}