summary refs log blame commit diff
path: root/pkgs/development/python-modules/astroid/default.nix
blob: d6fda529d5da2eae34b8dd28b335838deaa097a9 (plain) (tree)
1
2
3
4
5
6
7
8
9








                    
  
 
                        
                    
                    
 
                               
 

                          
                                                                                
    
 
                               



                                                             
 


                   
 
                    
                                                                              
                                                  
                                  
                              
                                        

    
{ 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; [ ];
  };
}