blob: fd0812139e3c64ce6515fcd65b1a8746b8ffab9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, typing-extensions
, pip
, pylint
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "astroid";
version = "3.0.2"; # Check whether the version is compatible with pylint
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "PyCQA";
repo = "astroid";
rev = "refs/tags/v${version}";
hash = "sha256-KTmFJKlymI1ACWk3UhbkZF/dB9W8/h6kaAfKLL3yiCA=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
typing-extensions
];
nativeCheckInputs = [
pip
pytestCheckHook
];
passthru.tests = {
inherit pylint;
};
meta = with lib; {
changelog = "https://github.com/PyCQA/astroid/blob/${src.rev}/ChangeLog";
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ GaetanLepage ];
};
}
|