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.

66 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, pythonOlder
, isPyPy
, lazy-object-proxy
, setuptools
, setuptools-scm
, typing-extensions
, typed-ast
, pylint
, pytestCheckHook
, wrapt
2017-05-27 12:23:41 +02:00
}:
2017-03-03 03:05:54 +01:00
2017-05-27 12:23:41 +02:00
buildPythonPackage rec {
pname = "astroid";
version = "2.11.7"; # Check whether the version is compatible with pylint
2017-03-03 03:05:54 +01:00
disabled = pythonOlder "3.6.2";
2018-07-24 01:08:05 +02:00
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
sha256 = "sha256-HpniGxKf+daMh/sxP9T9UriYRrUFWqk7kDa8r+EqtVI=";
2017-05-27 12:23:41 +02:00
};
2017-03-03 03:05:54 +01:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
lazy-object-proxy
setuptools
wrapt
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
] ++ lib.optionals (!isPyPy && pythonOlder "3.8") [
typed-ast
];
2017-03-03 03:05:54 +01:00
checkInputs = [
pytestCheckHook
];
2017-03-03 03:05:54 +01:00
disabledTests = [
# AssertionError: Lists differ: ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'Protocol', 'object'] != ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'object']
"test_mro_typing_extensions"
];
passthru.tests = {
inherit pylint;
};
2017-05-27 12:23:41 +02:00
meta = with lib; {
2018-08-31 00:28:38 +02:00
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ SuperSandro2000 ];
2017-05-27 12:23:41 +02:00
};
}