nixpkgs/pkgs/development/python-modules/openwebifpy/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

51 lines
1,020 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
hatchling,
# dependencies
aiohttp,
yarl,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "openwebifpy";
version = "4.3.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-FaynJT+bR63nIwLEwXjTjwPXZ3Q5/X+zpx0gTA3Pqo8=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
yarl
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "openwebif" ];
disabledTests = [
# https://github.com/autinerd/openwebifpy/issues/1
"test_get_picon_name"
];
meta = {
description = "Provides a python interface to interact with a device running OpenWebIf";
downloadPage = "https://github.com/autinerd/openwebifpy";
homepage = "https://openwebifpy.readthedocs.io/";
changelog = "https://github.com/autinerd/openwebifpy/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}