Loading pkgs/development/python-modules/python-pptx/default.nix +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 ]; }; } Loading
pkgs/development/python-modules/python-pptx/default.nix +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 ]; }; }