1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyparsing
5, six
6, pytestCheckHook
7, pretend
8, flit-core
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 = [ pyparsing six ];
25
26 checkInputs = [
27 pytestCheckHook
28 pretend
29 ];
30
31 # Prevent circular dependency
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Core utilities for Python packages";
36 homepage = "https://github.com/pypa/packaging";
37 license = [ licenses.bsd2 licenses.asl20 ];
38 maintainers = with maintainers; [ bennofs ];
39 };
40}