mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, isPyPy
|
|
, lazy-object-proxy
|
|
, setuptools
|
|
, typing-extensions
|
|
, typed-ast
|
|
, pylint
|
|
, pytestCheckHook
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "astroid";
|
|
version = "2.12.13"; # Check whether the version is compatible with pylint
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyCQA";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-C4A/JOFdIRgaZuV/YOLc4nC05XTtRCC1i0BcGBEG5ps=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
lazy-object-proxy
|
|
wrapt
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
typing-extensions
|
|
] ++ lib.optionals (!isPyPy && pythonOlder "3.8") [
|
|
typed-ast
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
typing-extensions
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit pylint;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "An abstract syntax tree for Python with inference support";
|
|
homepage = "https://github.com/PyCQA/astroid";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|