1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 requests, 7 websocket-client, 8}: 9 10buildPythonPackage rec { 11 pname = "html2image"; 12 version = "2.0.7"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "vgalin"; 17 repo = "html2image"; 18 tag = version; 19 hash = "sha256-qGp6i4fNmduTZfdxNvYJTAQV/Ovm3XFNOJ8uSj6Ipic="; 20 }; 21 22 build-system = [ hatchling ]; 23 24 dependencies = [ 25 requests 26 websocket-client 27 ]; 28 29 pythonImportsCheck = [ "html2image" ]; 30 31 meta = with lib; { 32 description = "Package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files"; 33 homepage = "https://github.com/vgalin/html2image"; 34 changelog = "https://github.com/vgalin/html2image/releases/tag/${src.tag}"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ happysalada ]; 37 }; 38}