lol

python310Packages.attrs: 22.2.0 -> 23.1.0

Changelog: https://github.com/python-attrs/attrs/releases/tag/23.1.0

authored by

natsukium and committed by
Frederik Rietdijk
a9b70860 b56b0dde

+89 -5
+15 -5
pkgs/development/python-modules/attrs/default.nix
··· 3 3 , buildPythonPackage 4 4 , fetchPypi 5 5 , pythonOlder 6 - , setuptools 6 + , hatchling 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 10 pname = "attrs"; 11 - version = "22.2.0"; 12 - disabled = pythonOlder "3.6"; 11 + version = "23.1.0"; 12 + disabled = pythonOlder "3.7"; 13 13 format = "pyproject"; 14 14 15 15 src = fetchPypi { 16 16 inherit pname version; 17 - hash = "sha256-ySJ7/C8BmTwD9o2zfR0VyWkBiDI8BnxkHxo1ylgYX5k="; 17 + hash = "sha256-YnmDbVgVE6JvG/I1+azTM7yRFWg/FPfo+uRsmPxQ4BU="; 18 18 }; 19 19 20 + patches = [ 21 + # hatch-vcs and hatch-fancy-pypi-readme depend on pytest, which depends on attrs 22 + ./remove-hatch-plugins.patch 23 + ]; 24 + 25 + postPatch = '' 26 + substituteAllInPlace pyproject.toml 27 + ''; 28 + 20 29 nativeBuildInputs = [ 21 - setuptools 30 + hatchling 22 31 ]; 23 32 24 33 outputs = [ ··· 47 56 meta = with lib; { 48 57 description = "Python attributes without boilerplate"; 49 58 homepage = "https://github.com/python-attrs/attrs"; 59 + changelog = "https://github.com/python-attrs/attrs/releases/tag/${version}"; 50 60 license = licenses.mit; 51 61 maintainers = with maintainers; [ ]; 52 62 };
+74
pkgs/development/python-modules/attrs/remove-hatch-plugins.patch
··· 1 + diff --git a/pyproject.toml b/pyproject.toml 2 + index fb8fae3..998211f 100644 3 + --- a/pyproject.toml 4 + +++ b/pyproject.toml 5 + @@ -1,7 +1,7 @@ 6 + # SPDX-License-Identifier: MIT 7 + 8 + [build-system] 9 + -requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] 10 + +requires = ["hatchling"] 11 + build-backend = "hatchling.build" 12 + 13 + 14 + @@ -26,7 +26,8 @@ classifiers = [ 15 + "Typing :: Typed", 16 + ] 17 + dependencies = ["importlib_metadata;python_version<'3.8'"] 18 + -dynamic = ["version", "readme"] 19 + +dynamic = ["readme"] 20 + +version = "@version@" 21 + 22 + [project.optional-dependencies] 23 + tests-no-zope = [ 24 + @@ -67,50 +68,9 @@ Changelog = "https://www.attrs.org/en/stable/changelog.html" 25 + Funding = "https://github.com/sponsors/hynek" 26 + Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi" 27 + 28 + - 29 + -[tool.hatch.version] 30 + -source = "vcs" 31 + -raw-options = { local_scheme = "no-local-version" } 32 + - 33 + [tool.hatch.build.targets.wheel] 34 + packages = ["src/attr", "src/attrs"] 35 + 36 + -[tool.hatch.metadata.hooks.fancy-pypi-readme] 37 + -content-type = "text/markdown" 38 + - 39 + -# PyPI doesn't support the <picture> tag. 40 + -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 41 + -text = """<p align="center"> 42 + - <a href="https://www.attrs.org/"> 43 + - <img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" /> 44 + - </a> 45 + -</p> 46 + -""" 47 + - 48 + -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 49 + -path = "README.md" 50 + -start-after = "<!-- teaser-begin -->" 51 + - 52 + -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 53 + -text = """ 54 + - 55 + -## Release Information 56 + - 57 + -""" 58 + - 59 + -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 60 + -path = "CHANGELOG.md" 61 + -pattern = "\n(###.+?\n)## " 62 + - 63 + -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 64 + -text = """ 65 + - 66 + ---- 67 + - 68 + -[Full changelog](https://www.attrs.org/en/stable/changelog.html) 69 + -""" 70 + - 71 + - 72 + # Make coverage play nicely with pytest-xdist. 73 + [tool.hatch.build.targets.wheel.hooks.autorun] 74 + dependencies = ["hatch-autorun"]