2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-07 07:45:13 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-03-15 16:39:30 +00:00
|
|
|
, flit-core
|
|
|
|
, pretend
|
2020-12-07 07:45:13 +00:00
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
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";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "23.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-tq0pf4kH3g+i/hzL0m/a84f19Hxydf7fjM6J+ZRGz5c=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
flit-core
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pretend
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
# Prevent circular dependency with pytest
|
2022-04-27 09:35:20 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
pythonImportsCheck = [ "packaging" ];
|
|
|
|
|
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 ];
|
2023-03-15 16:39:30 +00:00
|
|
|
maintainers = with maintainers; [ bennofs SuperSandro2000 ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-04-27 09:35:20 +00:00
|
|
|
in
|
|
|
|
packaging
|