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




                    



            



                        
                    


                          
                                                                                

    
                                               

                                                

                                             


                                                         

     


                                                            
                            


    
{ stdenv
, buildPythonPackage
, fetchPypi
, spark_parser
, xdis
, nose
, pytest
, hypothesis
, six
}:

buildPythonPackage rec {
  pname = "uncompyle6";
  version = "3.5.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "af6aea84ca42c889986f8baf86ccb9e3faae5ac1eaef470d2317dfe4131708b3";
  };

  checkInputs = [ nose pytest hypothesis six ];
  propagatedBuildInputs = [ spark_parser xdis ];

  # six import errors (yet it is supplied...)
  checkPhase = ''
    runHook preCheck
    pytest ./pytest --ignore=pytest/test_function_call.py
    runHook postCheck
  '';

  meta = with stdenv.lib; {
    description = "Python cross-version byte-code deparser";
    homepage = https://github.com/rocky/python-uncompyle6/;
    license = licenses.gpl3;
  };

}