1{ lib
2, buildPythonPackage
3, fetchPypi
4, lxml
5, xlsxwriter
6, pillow
7}:
8buildPythonPackage rec {
9 pname = "python-pptx";
10 version = "0.6.23";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-WHSX/yjneasY27B09tQFKJPIXe3JXtdd8xk2TzMf7e4=";
15 };
16
17 # postPatch = ''
18 # substituteInPlace setup.py \
19 # --replace "grpcio-tools>=1.47.0, <=1.48.0" "grpcio-tools>=1.47.0, <=1.52.0" \
20 # --replace "grpcio>=1.47.0,<=1.48.0" "grpcio>=1.47.0,<=1.53.0" \
21 # --replace "ujson>=2.0.0,<=5.4.0" "ujson>=2.0.0,<=5.7.0"
22 # '';
23
24 propagatedBuildInputs = [
25 lxml
26 xlsxwriter
27 pillow
28 ];
29
30 doCheck = false;
31
32 meta = with lib; {
33 homepage = "https://github.com/scanny/python-pptx";
34 description = "Create Open XML PowerPoint documents in Python";
35 license = licenses.mit;
36 maintainers = with maintainers; [happysalada];
37 };
38}