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


                                            


           



                        
                    


                          
                                                                                

    






                                                 

                 
          

     
                    


                                                                                              
                                                           
    
 
{ lib, buildPythonPackage, fetchPypi, isPy27
, graphviz
, mock
, pyparsing
, pytest
, unittest2
}:

buildPythonPackage rec {
  pname = "pydot_ng";
  version = "2.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "8c8073b97aa7030c28118961e2c6c92f046e4cb57aeba7df87146f7baa6530c5";
  };

  propagatedBuildInputs = [ graphviz pyparsing ];

  checkInputs = [
    graphviz
    mock
    pytest
  ] ++ lib.optionals isPy27 [ unittest2];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    homepage = "https://pypi.python.org/pypi/pydot-ng";
    description = "Python 3-compatible update of pydot, a Python interface to Graphviz's Dot";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin jonringer ];
  };
}