2017-07-15 15:33:16 +07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pyparsing, six, pytest, pretend }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "packaging";
|
2020-05-09 12:21:35 +02:00
|
|
|
version = "20.3";
|
2017-07-15 15:33:16 +07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 12:21:35 +02:00
|
|
|
sha256 = "3c292b474fda1671ec57d46d739d072bfd495a4f51ad01a055121d81e952b7a3";
|
2017-07-15 15:33:16 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyparsing six ];
|
|
|
|
|
2018-02-18 19:31:39 +01:00
|
|
|
checkInputs = [ pytest pretend ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
2017-07-15 15:33:16 +07:00
|
|
|
|
2019-06-15 19:22:24 +02:00
|
|
|
# Prevent circular dependency
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-07-15 15:33:16 +07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Core utilities for Python packages";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/pypa/packaging";
|
2017-07-15 15:33:16 +07:00
|
|
|
license = [ licenses.bsd2 licenses.asl20 ];
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|