Files
nixpkgs/pkgs/development/python-modules/astroid/default.nix
T
2025-01-04 00:19:17 +01:00

48 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
typing-extensions,
pip,
pylint,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "astroid";
version = "3.3.5"; # Check whether the version is compatible with pylint
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "PyCQA";
repo = "astroid";
tag = "v${version}";
hash = "sha256-IFcBb0BP0FRYCztV3FscBPTDeKrGbr23nxeibSuNRno=";
};
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 = "Abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ GaetanLepage ];
};
}