1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyparsing 5, six 6, pytestCheckHook 7, pretend 8}: 9 10# We keep 20.4 because it uses setuptools instead of flit-core 11# which requires Python 3 to build a universal wheel. 12 13buildPythonPackage rec { 14 pname = "packaging"; 15 version = "20.4"; 16 format = "setuptools"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8"; 21 }; 22 23 propagatedBuildInputs = [ pyparsing six ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 pretend 28 ]; 29 30 # Prevent circular dependency 31 doCheck = false; 32 33 meta = with lib; { 34 description = "Core utilities for Python packages"; 35 homepage = "https://github.com/pypa/packaging"; 36 license = [ licenses.bsd2 licenses.asl20 ]; 37 maintainers = with maintainers; [ bennofs ]; 38 }; 39}