1{ stdenv, buildPythonPackage, fetchPypi
2, pyparsing, six, pytest, pretend }:
3
4buildPythonPackage rec {
5 pname = "packaging";
6 version = "20.4";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8";
11 };
12
13 propagatedBuildInputs = [ pyparsing six ];
14
15 checkInputs = [ pytest pretend ];
16
17 checkPhase = ''
18 py.test tests
19 '';
20
21 # Prevent circular dependency
22 doCheck = false;
23
24 meta = with stdenv.lib; {
25 description = "Core utilities for Python packages";
26 homepage = "https://github.com/pypa/packaging";
27 license = [ licenses.bsd2 licenses.asl20 ];
28 maintainers = with maintainers; [ bennofs ];
29 };
30}