Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / astroid / default.nix
blobd0b3fe60160aa509deba18c0882261c607b25d5c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , setuptools
6 , typing-extensions
7 , pip
8 , pylint
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "astroid";
14   version = "3.1.0"; # Check whether the version is compatible with pylint
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "PyCQA";
21     repo = "astroid";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-+cTQHbqoucaNi7rPoyH6Cu07vZMS8KWn5C/A3NXRSwE=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
31     typing-extensions
32   ];
34   nativeCheckInputs = [
35     pip
36     pytestCheckHook
37   ];
39   passthru.tests = {
40     inherit pylint;
41   };
43   meta = with lib; {
44     changelog = "https://github.com/PyCQA/astroid/blob/${src.rev}/ChangeLog";
45     description = "An abstract syntax tree for Python with inference support";
46     homepage = "https://github.com/PyCQA/astroid";
47     license = licenses.lgpl21Plus;
48     maintainers = with maintainers; [ GaetanLepage ];
49   };