2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-07 07:45:13 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyparsing
|
|
|
|
, 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
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
let
|
|
|
|
packaging = buildPythonPackage rec {
|
|
|
|
pname = "packaging";
|
|
|
|
version = "21.3";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ pyparsing ];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pretend
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
# Prevent circular dependency
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; });
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Core utilities for Python packages";
|
|
|
|
homepage = "https://github.com/pypa/packaging";
|
|
|
|
license = with licenses; [ bsd2 asl20 ];
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-04-27 09:35:20 +00:00
|
|
|
in
|
|
|
|
packaging
|