15 buildPythonPackage rec {
16 pname = "logilab-common";
20 disabled = pythonOlder "3.6";
23 inherit pname version;
24 hash = "sha256-ojvR2k3Wpj5Ej0OS57I4aFX/cGFVeL/PmT7riCTelws=";
27 postPatch = lib.optionals (pythonAtLeast "3.12") ''
28 substituteInPlace logilab/common/testlib.py \
29 --replace-fail "_TextTestResult" "TextTestResult"
32 build-system = [ setuptools ];
38 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
46 export COLLECT_DEPRECATION_WARNINGS_PACKAGE_NAME=true
50 description = "Python packages and modules used by Logilab";
51 homepage = "https://logilab-common.readthedocs.io/";
52 changelog = "https://forge.extranet.logilab.fr/open-source/logilab-common/-/blob/branch/default/CHANGELOG.md";
53 license = licenses.lgpl21Plus;
55 mainProgram = "logilab-pytest";