Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 866 B view raw
1{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy 2, lazy-object-proxy, six, wrapt, typing, typed-ast 3, pytestrunner, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "astroid"; 8 version = "2.1.0"; 9 10 disabled = pythonOlder "3.4"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "08hz675knh4294bancdapql392fmbjyimhbyrmfkz1ka7l035c1m"; 15 }; 16 17 # From astroid/__pkginfo__.py 18 propagatedBuildInputs = [ lazy-object-proxy six wrapt ] 19 ++ lib.optional (pythonOlder "3.5") typing 20 ++ lib.optional (pythonOlder "3.7" && !isPyPy) typed-ast; 21 22 checkInputs = [ pytestrunner pytest ]; 23 24 meta = with lib; { 25 description = "An abstract syntax tree for Python with inference support"; 26 homepage = https://github.com/PyCQA/astroid; 27 license = licenses.lgpl2; 28 platforms = platforms.all; 29 maintainers = with maintainers; [ nand0p ]; 30 }; 31}