From d29cb87ecca1c9270eefa6e77ec15b0546fa7458 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Fri, 9 Dec 2022 03:08:00 +0100 Subject: [PATCH] py-reportlab: add 3.6.12 (#34396) * py-reportlab: add 3.6.12 * Update var/spack/repos/builtin/packages/py-reportlab/package.py Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/py-reportlab/package.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-reportlab/package.py b/var/spack/repos/builtin/packages/py-reportlab/package.py index c6e30c37b5..0c07d4fc80 100644 --- a/var/spack/repos/builtin/packages/py-reportlab/package.py +++ b/var/spack/repos/builtin/packages/py-reportlab/package.py @@ -10,8 +10,10 @@ class PyReportlab(PythonPackage): """The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.""" + homepage = "https://www.reportlab.com" pypi = "reportlab/reportlab-3.4.0.tar.gz" + version("3.6.12", sha256="b13cebf4e397bba14542bcd023338b6ff2c151a3a12aabca89eecbf972cb361a") version("3.4.0", sha256="5beaf35e59dfd5ebd814fdefd76908292e818c982bd7332b5d347dfd2f01c343") # py-reportlab provides binaries that duplicate those of other packages, @@ -20,7 +22,19 @@ class PyReportlab(PythonPackage): # - pip, provided by py-pip extends("python", ignore=r"bin/.*") + depends_on("python@3.7:3", when="@3.6.9:", type=("build", "run")) depends_on("py-setuptools@2.2:", type="build") depends_on("py-pip@1.4.1:", type="build") + depends_on("pil@9:", when="@3.6.10:", type=("build", "run")) depends_on("pil@2.4.0:", type=("build", "run")) depends_on("freetype") + + def patch(self): + filter_file( + "[FREETYPE_PATHS]", + "[FREETYPE_PATHS]\n" + + "lib={}\n".format(self.spec["freetype"].libs.directories[0]) + + "inc={}\n".format(self.spec["freetype"].headers.directories[0]), + "setup.cfg", + string=True, + )