mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
32 lines
857 B
Nix
32 lines
857 B
Nix
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
|
|
, lazy-object-proxy, six, wrapt, typing, typed-ast
|
|
, pytestrunner, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "astroid";
|
|
version = "2.3.3";
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "71ea07f44df9568a75d0f354c49143a4575d90645e9fead6dfb52c26a85ed13a";
|
|
};
|
|
|
|
# From astroid/__pkginfo__.py
|
|
propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
|
|
++ lib.optional (pythonOlder "3.5") typing
|
|
++ lib.optional (!isPyPy) typed-ast;
|
|
|
|
checkInputs = [ pytestrunner pytest ];
|
|
|
|
meta = with lib; {
|
|
description = "An abstract syntax tree for Python with inference support";
|
|
homepage = https://github.com/PyCQA/astroid;
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ nand0p ];
|
|
};
|
|
}
|