nixpkgs/pkgs/development/python-modules/astroid/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, isPyPy
, lazy-object-proxy
, setuptools
, wheel
, typing-extensions
, typed-ast
, pip
, pylint
, pytestCheckHook
, wrapt
2017-05-27 10:23:41 +00:00
}:
2017-03-03 02:05:54 +00:00
2017-05-27 10:23:41 +00:00
buildPythonPackage rec {
pname = "astroid";
version = "2.15.6"; # Check whether the version is compatible with pylint
format = "pyproject";
2017-03-03 02:05:54 +00:00
disabled = pythonOlder "3.7.2";
2018-07-23 23:08:05 +00:00
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-0oNNEVD8rYGkM11nGUD+XMwE7xgk7mJIaplrAXaECFg=";
2017-05-27 10:23:41 +00:00
};
2017-03-03 02:05:54 +00:00
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
lazy-object-proxy
wrapt
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
] ++ lib.optionals (!isPyPy && pythonOlder "3.8") [
typed-ast
];
2017-03-03 02:05:54 +00:00
nativeCheckInputs = [
pip
pytestCheckHook
typing-extensions
];
disabledTests = [
# DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('tests.testdata.python3.data.path_pkg_resources_1.package')`.
"test_identify_old_namespace_package_protocol"
];
passthru.tests = {
inherit pylint;
};
2017-05-27 10:23:41 +00:00
meta = with lib; {
changelog = "https://github.com/PyCQA/astroid/blob/${src.rev}/ChangeLog";
2018-08-30 22:28:38 +00:00
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
2023-07-23 17:30:22 +00:00
maintainers = with maintainers; [ ];
2017-05-27 10:23:41 +00:00
};
}