depot/third_party/nixpkgs/pkgs/development/python-modules/astroid/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

40 lines
830 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, isPyPy
, lazy-object-proxy
, wrapt
, typed-ast
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "astroid";
version = "2.5.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "cfc35498ee64017be059ceffab0a25bedf7548ab76f2bea691c5565896e7128d";
};
# From astroid/__pkginfo__.py
propagatedBuildInputs = [
lazy-object-proxy
wrapt
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
platforms = platforms.all;
maintainers = with maintainers; [ nand0p ];
};
}