3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/astroid/default.nix
2018-10-11 18:15:15 -04:00

32 lines
878 B
Nix

{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
, lazy-object-proxy, six, wrapt, typing, typed-ast
, pytestrunner, pytest
}:
buildPythonPackage rec {
pname = "astroid";
version = "2.0.4";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "c7013d119ec95eb626f7a2011f0b63d0c9a095df9ad06d8507b37084eada1a8d";
};
# From astroid/__pkginfo__.py
propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
++ lib.optional (pythonOlder "3.5") typing
++ lib.optional (pythonOlder "3.7" && !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 ];
};
}