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:
parent
bcd6e799e0
commit
2c68d6b029
@ -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)
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user