1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 packaging,
6 pretend,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "packaging-legacy";
14 version = "23.0.post0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "di";
21 repo = "packaging_legacy";
22 tag = version;
23 hash = "sha256-2TnJjxasC8+c+qHY60e6Jyqhf1nQJfj/tmIA/LvUsT8=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [ packaging ];
29
30 nativeCheckInputs = [
31 pretend
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "packaging_legacy" ];
36
37 meta = {
38 description = "Module to support for legacy Python Packaging functionality";
39 homepage = "https://github.com/di/packaging_legacy";
40 license = lib.licenses.bsd2;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}