evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / html2image / default.nix
blobbcf78da3db8f1003bdf1d9f2a8c440a2ee39ac2d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   requests,
7   websocket-client,
8 }:
10 buildPythonPackage rec {
11   pname = "html2image";
12   version = "2.0.5";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "vgalin";
17     repo = "html2image";
18     rev = "refs/tags/${version}";
19     hash = "sha256-k5y89nUF+fhUj9uzTAPkkAdOb2TsTL2jm/ZXwHlxu/A=";
20   };
22   postPatch = ''
23     substituteInPlace pyproject.toml \
24     --replace-fail poetry.masonry.api poetry.core.masonry.api \
25     --replace-fail "poetry>=" "poetry-core>="
26   '';
28   build-system = [ poetry-core ];
30   dependencies = [
31     requests
32     websocket-client
33   ];
35   pythonImportsCheck = [ "html2image" ];
37   meta = with lib; {
38     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";
39     homepage = "https://github.com/vgalin/html2image";
40     changelog = "https://github.com/vgalin/html2image/releases/tag/${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ happysalada ];
43   };