2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-07 07:45:13 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyparsing
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
|
|
|
, pretend
|
2021-04-05 15:23:46 +00:00
|
|
|
, setuptools
|
2020-12-07 07:45:13 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "packaging";
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "20.9";
|
2020-12-07 07:45:13 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-12 18:23:04 +00:00
|
|
|
sha256 = "sha256-WzJ6wTINyGPcpy9FFOzAhvMRhnRLhKIwN0zB/Xdv6uU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
nativeBuildInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
setuptools
|
2020-12-07 07:45:13 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ pyparsing six ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pretend
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Prevent circular dependency
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Core utilities for Python packages";
|
|
|
|
homepage = "https://github.com/pypa/packaging";
|
|
|
|
license = [ licenses.bsd2 licenses.asl20 ];
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|