1{ stdenv, buildPythonPackage, fetchPypi
2, pyparsing, six, pytest, pretend }:
3
4buildPythonPackage rec {
5 pname = "packaging";
6 version = "20.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334";
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}