python311Packages.packaging: 23.2 -> 24.0

https://github.com/pypa/packaging/blob/24.0/CHANGELOG.rst

The `requires_dist` field now defaults to `None`, if the package does
not specify any requirements.
This commit is contained in:
Martin Weinelt 2024-03-22 16:33:37 +01:00
parent bcd6e799e0
commit 2c68d6b029
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 8 additions and 3 deletions

View File

@ -91,7 +91,12 @@ if __name__ == "__main__":
args = argparser.parse_args()
metadata = get_metadata(args.wheel)
tests = [test_requirement(requirement) for requirement in metadata.requires_dist]
requirements = metadata.requires_dist
if not requirements:
sys.exit(0)
tests = [test_requirement(requirement) for requirement in requirements]
if not all(tests):
sys.exit(1)

View File

@ -14,14 +14,14 @@
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "23.2";
version = "24.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-BI+w6UBQNlGOqvSKVZU8dQwR4aG2jg3RqdYu0MCSz8U=";
hash = "sha256-64LF4+ViCQdHZuaIW7BLjDigwBXQowA26+fs40yZiek=";
};
nativeBuildInputs = [