2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-11-29 15:04:35 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyparsing
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
|
|
|
, pretend
|
2021-03-13 10:13:54 +01:00
|
|
|
, setuptools
|
2020-11-29 15:04:35 +01:00
|
|
|
}:
|
2017-07-15 15:33:16 +07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "packaging";
|
2021-03-23 10:41:35 +01:00
|
|
|
version = "20.9";
|
2020-11-29 15:04:35 +01:00
|
|
|
format = "pyproject";
|
2017-07-15 15:33:16 +07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 10:41:35 +01:00
|
|
|
sha256 = "sha256-WzJ6wTINyGPcpy9FFOzAhvMRhnRLhKIwN0zB/Xdv6uU=";
|
2017-07-15 15:33:16 +07:00
|
|
|
};
|
|
|
|
|
2020-11-29 15:04:35 +01:00
|
|
|
nativeBuildInputs = [
|
2021-03-13 10:13:54 +01:00
|
|
|
setuptools
|
2020-11-29 15:04:35 +01:00
|
|
|
];
|
|
|
|
|
2017-07-15 15:33:16 +07:00
|
|
|
propagatedBuildInputs = [ pyparsing six ];
|
|
|
|
|
2020-11-29 15:04:35 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pretend
|
|
|
|
];
|
2018-02-18 19:31:39 +01:00
|
|
|
|
2019-06-15 19:22:24 +02:00
|
|
|
# Prevent circular dependency
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-07-15 15:33:16 +07:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|