depot/third_party/nixpkgs/pkgs/development/python-modules/astroid/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
typing-extensions,
pip,
pylint,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "astroid";
version = "3.2.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-Fc/AjMOz9D9SgkxXvMAhvJcZtj9BsPykg0DX4hEqdB8=";
};
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 ];
};
}