Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / logilab / common.nix
blobb8fadc0832adfa2336edb624baff61248b74ffdf
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , setuptools
6 , importlib-metadata
7 , mypy-extensions
8 , typing-extensions
9 , pytestCheckHook
10 , pytz
13 buildPythonPackage rec {
14   pname = "logilab-common";
15   version = "2.0.0";
16   format = "pyproject";
18   disabled = pythonOlder "3.6";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-ojvR2k3Wpj5Ej0OS57I4aFX/cGFVeL/PmT7riCTelws=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     setuptools
31     mypy-extensions
32     typing-extensions
33   ] ++ lib.optionals (pythonOlder "3.8") [
34     importlib-metadata
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39     pytz
40   ];
42   preCheck = ''
43     export COLLECT_DEPRECATION_WARNINGS_PACKAGE_NAME=true
44   '';
46   meta = with lib; {
47     description = "Python packages and modules used by Logilab ";
48     mainProgram = "logilab-pytest";
49     homepage = "https://logilab-common.readthedocs.io/";
50     changelog = "https://forge.extranet.logilab.fr/open-source/logilab-common/-/blob/branch/default/CHANGELOG.md";
51     license = licenses.lgpl21Plus;
52   };