python3Packages.openwebifpy: 3.2.7 -> 4.0.0

This commit is contained in:
Martin Weinelt
2023-12-20 20:44:44 +01:00
parent ba6393839c
commit 3a38961584
@@ -1,30 +1,45 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, requests, zeroconf, wakeonlan
, python }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, setuptools
# dependencies
, aiohttp
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "openwebifpy";
version = "3.2.7";
format = "setuptools";
version = "4.0.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0n9vi6b0y8b41fd7m9p361y3qb5m3b9p9d8g4fasqi7yy4mw2hns";
hash = "sha256-4KYLjRD2n98t/MVan4ox19Yhz0xkSEMUKYdWqcwmBs4=";
};
propagatedBuildInputs = [
requests
zeroconf
wakeonlan
nativeBuildInputs = [
setuptools
];
checkPhase = ''
${python.interpreter} setup.py test
'';
propagatedBuildInputs = [
aiohttp
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Provides a python interface to interact with a device running OpenWebIf";
downloadPage = "https://github.com/autinerd/openwebifpy";
homepage = "https://openwebifpy.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];