3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/astroid/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, isPyPy
, lazy-object-proxy
, wrapt
, typed-ast
, pytestCheckHook
, setuptools-scm
, pylint
2017-05-27 11:23:41 +01:00
}:
2017-03-03 02:05:54 +00:00
2017-05-27 11:23:41 +01:00
buildPythonPackage rec {
pname = "astroid";
version = "2.7.3"; # Check whether the version is compatible with pylint
2017-03-03 02:05:54 +00:00
disabled = pythonOlder "3.6";
2018-07-24 00:08:05 +01:00
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
sha256 = "08qxw58cdyglkni6ahyil4cmnb48zz0wr4v05gzqk4r5ifs4gl2m";
2017-05-27 11:23:41 +01:00
};
2017-03-03 02:05:54 +00:00
SETUPTOOLS_SCM_PRETEND_VERSION=version;
nativeBuildInputs = [
setuptools-scm
];
2018-07-24 00:08:05 +01:00
# From astroid/__pkginfo__.py
propagatedBuildInputs = [
lazy-object-proxy
wrapt
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
2017-03-03 02:05:54 +00:00
checkInputs = [
pytestCheckHook
];
2017-03-03 02:05:54 +00:00
passthru.tests = {
inherit pylint;
};
2017-05-27 11:23:41 +01:00
meta = with lib; {
2018-08-30 23:28:38 +01:00
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
2017-05-27 11:23:41 +01:00
platforms = platforms.all;
maintainers = with maintainers; [ ];
2017-05-27 11:23:41 +01:00
};
}