Unverified Commit 8e018677 authored by Yt's avatar Yt Committed by GitHub
Browse files

python3Packages.python-pptx: 0.6.23 -> 1.0.2 (#359781)

parents 20fb3d9b ae281b2c
Loading
Loading
Loading
Loading
+25 −20
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  lxml,
  xlsxwriter,
  pillow,
  typing-extensions,
  xlsxwriter,
}:

buildPythonPackage rec {
  pname = "python-pptx";
  version = "0.6.23";
  format = "setuptools";
  version = "1.0.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-WHSX/yjneasY27B09tQFKJPIXe3JXtdd8xk2TzMf7e4=";
  src = fetchFromGitHub {
    owner = "scanny";
    repo = "python-pptx";
    rev = "v${version}";
    hash = "sha256-KyBttTAtP8sVPjYdrY0XReB+4Xfru8GdyYWuiyNZ67w=";
  };

  # 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"
  #   '';
  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
  dependencies = [
    lxml
    xlsxwriter
    pillow
    typing-extensions
    xlsxwriter
  ];

  doCheck = false;
  pythonImportsCheck = [
    "pptx"
  ];

  meta = with lib; {
    homepage = "https://github.com/scanny/python-pptx";
  meta = {
    description = "Create Open XML PowerPoint documents in Python";
    license = licenses.mit;
    maintainers = with maintainers; [ happysalada ];
    homepage = "https://github.com/scanny/python-pptx";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ happysalada ];
  };
}