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