diff --git a/pkgs/development/python-modules/jsonschema/default.nix b/pkgs/development/python-modules/jsonschema/default.nix index cde909e79b83..2ccbacbf61c8 100644 --- a/pkgs/development/python-modules/jsonschema/default.nix +++ b/pkgs/development/python-modules/jsonschema/default.nix @@ -14,16 +14,20 @@ buildPythonPackage rec { pname = "jsonschema"; - version = "4.9.1"; + version = "4.13.0"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-QIxMjtDe3jsmj3pEF4T3QgY4CwT5PrLVN8e++z3zCZ8="; + sha256 = "sha256-N3ZRLfT1P3Tm4o/jVxe1siPBdWh1SGmEoxvJFl5/ySA="; }; + patches = [ + ./remove-fancy-pypi-readme.patch + ]; + postPatch = '' patchShebangs json/bin/jsonschema_suite ''; diff --git a/pkgs/development/python-modules/jsonschema/remove-fancy-pypi-readme.patch b/pkgs/development/python-modules/jsonschema/remove-fancy-pypi-readme.patch new file mode 100644 index 000000000000..7124e5a6263b --- /dev/null +++ b/pkgs/development/python-modules/jsonschema/remove-fancy-pypi-readme.patch @@ -0,0 +1,33 @@ +--- a/pyproject.toml 2022-08-21 05:04:18.443484836 +0200 ++++ b/pyproject.toml 2022-08-21 05:04:50.789353514 +0200 +@@ -76,30 +76,6 @@ + Changelog = "https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst" + Source = "https://github.com/python-jsonschema/jsonschema" + +-[tool.hatch.metadata.hooks.fancy-pypi-readme] +-content-type = "text/x-rst" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.rst" +-end-before = ".. start cut from PyPI" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.rst" +-start-after = ".. end cut from PyPI\n\n\n" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-text = """ +- +- +-Release Information +-------------------- +- +-""" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "CHANGELOG.rst" +-pattern = "(^v.+?)\nv" +- + [tool.isort] + from_first = true + include_trailing_comma = true