prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Installation issue: py-jsonchema (No checksum provided for @2.6.0 requested by nrm)
  The nrm package specifically requests py-jsonschema@2.6.0. Attempting to install this package results in the following error:
  
  ==> Warning: There is no checksum on file to fetch py-jsonschema@2.6.0 safely.
  ==> Error: Will not fetch py-jsonschema@2.6.0
  Add a checksum or use --no-checksum to skip this check.
  
  
  </issue>
  <code>
  [start of var/spack/repos/builtin/packages/py-jsonschema/package.py]
  1 # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
  2 # Spack Project Developers. See the top-level COPYRIGHT file for details.
  3 #
  4 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
  5 
  6 from spack import *
  7 
  8 
  9 class PyJsonschema(PythonPackage):
  10     """Jsonschema: An(other) implementation of JSON Schema for Python."""
  11 
  12     homepage = "http://github.com/Julian/jsonschema"
  13     url      = "https://pypi.io/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz"
  14 
  15     version('2.5.1', '374e848fdb69a3ce8b7e778b47c30640')
  16 
  17     depends_on('py-setuptools', type='build')
  18     depends_on('py-vcversioner', type=('build', 'run'))
  19     depends_on('py-functools32', when="^python@2.7.0:2.7.999", type=('build', 'run'))
  20
  [end of var/spack/repos/builtin/packages/py-jsonschema/package.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/var/spack/repos/builtin/packages/py-jsonschema/package.py b/var/spack/repos/builtin/packages/py-jsonschema/package.py
  --- a/var/spack/repos/builtin/packages/py-jsonschema/package.py
  +++ b/var/spack/repos/builtin/packages/py-jsonschema/package.py
  @@ -10,8 +10,9 @@
       """Jsonschema: An(other) implementation of JSON Schema for Python."""
   
       homepage = "http://github.com/Julian/jsonschema"
  -    url      = "https://pypi.io/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz"
  +    url      = "https://pypi.io/packages/source/j/jsonschema/jsonschema-2.6.0.tar.gz"
   
  +    version('2.6.0', sha256='6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02')
       version('2.5.1', '374e848fdb69a3ce8b7e778b47c30640')
   
       depends_on('py-setuptools', type='build')
  
verification_info: {"golden_diff": "diff --git a/var/spack/repos/builtin/packages/py-jsonschema/package.py b/var/spack/repos/builtin/packages/py-jsonschema/package.py\n--- a/var/spack/repos/builtin/packages/py-jsonschema/package.py\n+++ b/var/spack/repos/builtin/packages/py-jsonschema/package.py\n@@ -10,8 +10,9 @@\n     \"\"\"Jsonschema: An(other) implementation of JSON Schema for Python.\"\"\"\n \n     homepage = \"http://github.com/Julian/jsonschema\"\n-    url      = \"https://pypi.io/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz\"\n+    url      = \"https://pypi.io/packages/source/j/jsonschema/jsonschema-2.6.0.tar.gz\"\n \n+    version('2.6.0', sha256='6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02')\n     version('2.5.1', '374e848fdb69a3ce8b7e778b47c30640')\n \n     depends_on('py-setuptools', type='build')\n", "issue": "Installation issue: py-jsonchema (No checksum provided for @2.6.0 requested by nrm)\nThe nrm package specifically requests py-jsonschema@2.6.0. Attempting to install this package results in the following error:\r\n\r\n==> Warning: There is no checksum on file to fetch py-jsonschema@2.6.0 safely.\r\n==> Error: Will not fetch py-jsonschema@2.6.0\r\nAdd a checksum or use --no-checksum to skip this check.\r\n\n", "before_files": [{"content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\n\n\nclass PyJsonschema(PythonPackage):\n    \"\"\"Jsonschema: An(other) implementation of JSON Schema for Python.\"\"\"\n\n    homepage = \"http://github.com/Julian/jsonschema\"\n    url      = \"https://pypi.io/packages/source/j/jsonschema/jsonschema-2.5.1.tar.gz\"\n\n    version('2.5.1', '374e848fdb69a3ce8b7e778b47c30640')\n\n    depends_on('py-setuptools', type='build')\n    depends_on('py-vcversioner', type=('build', 'run'))\n    depends_on('py-functools32', when=\"^python@2.7.0:2.7.999\", type=('build', 'run'))\n", "path": "var/spack/repos/builtin/packages/py-jsonschema/package.py"}]}