depot/third_party/nixpkgs/pkgs/development/python-modules/python-pptx/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
905 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
lxml,
xlsxwriter,
pillow,
}:
buildPythonPackage rec {
pname = "python-pptx";
version = "0.6.23";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-WHSX/yjneasY27B09tQFKJPIXe3JXtdd8xk2TzMf7e4=";
};
# postPatch = ''
# substituteInPlace setup.py \
# --replace "grpcio-tools>=1.47.0, <=1.48.0" "grpcio-tools>=1.47.0, <=1.52.0" \
# --replace "grpcio>=1.47.0,<=1.48.0" "grpcio>=1.47.0,<=1.53.0" \
# --replace "ujson>=2.0.0,<=5.4.0" "ujson>=2.0.0,<=5.7.0"
# '';
propagatedBuildInputs = [
lxml
xlsxwriter
pillow
];
doCheck = false;
meta = with lib; {
homepage = "https://github.com/scanny/python-pptx";
description = "Create Open XML PowerPoint documents in Python";
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
};
}