python311Packages.openwebifpy: 3.2.7 -> 4.0.2

Changelog: https://github.com/autinerd/openwebifpy/releases/tag/4.0.2
This commit is contained in:
Fabian Affolter
2024-01-03 22:31:26 +01:00
committed by Martin Weinelt
parent 812920d19d
commit 59e6d86418
@@ -1,31 +1,51 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, requests, zeroconf, wakeonlan
, python }:
{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, yarl
}:
buildPythonPackage rec {
pname = "openwebifpy";
version = "3.2.7";
format = "setuptools";
disabled = pythonOlder "3.6";
version = "4.0.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "0n9vi6b0y8b41fd7m9p361y3qb5m3b9p9d8g4fasqi7yy4mw2hns";
hash = "sha256-D2NCTn1Q3/AknmEAAOZO4d7i2mpM/kMlt94RaLmmnjM=";
};
propagatedBuildInputs = [
requests
zeroconf
wakeonlan
nativeBuildInputs = [
setuptools
];
checkPhase = ''
${python.interpreter} setup.py test
'';
propagatedBuildInputs = [
aiohttp
yarl
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"openwebif"
];
disabledTests = [
# https://github.com/autinerd/openwebifpy/issues/1
"test_get_picon_name"
];
meta = with lib; {
description = "Provides a python interface to interact with a device running OpenWebIf";
homepage = "https://openwebifpy.readthedocs.io/";
homepage = "https://github.com/autinerd/openwebifpy";
changelog = "https://github.com/autinerd/openwebifpy/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};