Skip to content

Commit 8e01867

Browse files
authored
python3Packages.python-pptx: 0.6.23 -> 1.0.2 (#359781)
2 parents 20fb3d9 + ae281b2 commit 8e01867

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed
Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,45 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
5+
setuptools,
56
lxml,
6-
xlsxwriter,
77
pillow,
8+
typing-extensions,
9+
xlsxwriter,
810
}:
11+
912
buildPythonPackage rec {
1013
pname = "python-pptx";
11-
version = "0.6.23";
12-
format = "setuptools";
14+
version = "1.0.2";
15+
pyproject = true;
1316

14-
src = fetchPypi {
15-
inherit pname version;
16-
hash = "sha256-WHSX/yjneasY27B09tQFKJPIXe3JXtdd8xk2TzMf7e4=";
17+
src = fetchFromGitHub {
18+
owner = "scanny";
19+
repo = "python-pptx";
20+
rev = "v${version}";
21+
hash = "sha256-KyBttTAtP8sVPjYdrY0XReB+4Xfru8GdyYWuiyNZ67w=";
1722
};
1823

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-
# '';
24+
build-system = [
25+
setuptools
26+
];
2527

26-
propagatedBuildInputs = [
28+
dependencies = [
2729
lxml
28-
xlsxwriter
2930
pillow
31+
typing-extensions
32+
xlsxwriter
3033
];
3134

32-
doCheck = false;
35+
pythonImportsCheck = [
36+
"pptx"
37+
];
3338

34-
meta = with lib; {
35-
homepage = "https://github.com/scanny/python-pptx";
39+
meta = {
3640
description = "Create Open XML PowerPoint documents in Python";
37-
license = licenses.mit;
38-
maintainers = with maintainers; [ happysalada ];
41+
homepage = "https://github.com/scanny/python-pptx";
42+
license = lib.licenses.mit;
43+
maintainers = with lib.maintainers; [ happysalada ];
3944
};
4045
}

0 commit comments

Comments
 (0)