otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / development / python-modules / astroid / default.nix
blob5bf0ab7dfe04e362d28a1220828a72acadff9bc4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   setuptools,
7   typing-extensions,
8   pip,
9   pylint,
10   pytestCheckHook,
13 buildPythonPackage rec {
14   pname = "astroid";
15   version = "3.3.4"; # Check whether the version is compatible with pylint
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "PyCQA";
22     repo = "astroid";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-/VpGniyKzFToDNSnnbYvpUFJjx0Rx9N7x56BJnR0lpk=";
25   };
27   nativeBuildInputs = [ setuptools ];
29   propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
31   nativeCheckInputs = [
32     pip
33     pytestCheckHook
34   ];
36   passthru.tests = {
37     inherit pylint;
38   };
40   meta = with lib; {
41     changelog = "https://github.com/PyCQA/astroid/blob/${src.rev}/ChangeLog";
42     description = "Abstract syntax tree for Python with inference support";
43     homepage = "https://github.com/PyCQA/astroid";
44     license = licenses.lgpl21Plus;
45     maintainers = with maintainers; [ GaetanLepage ];
46   };