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