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


                        
                     



                                            
                                                                                

    


                                                    




                                                                         
                               


                                                 
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:

buildPythonPackage rec {
  pname = "pyodbc";
  version = "4.0.28";
  disabled = isPyPy;  # use pypypdbc instead

  src = fetchPypi {
    inherit pname version;
    sha256 = "510643354c4c687ed96bf7e7cec4d02d6c626ecf3e18696f5a0228dd6d11b769";
  };

  buildInputs = [ unixODBC ];

  doCheck = false; # tests require a database server

  meta = with stdenv.lib; {
    description = "Python ODBC module to connect to almost any database";
    homepage = "https://github.com/mkleehammer/pyodbc";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = with maintainers; [ bjornfor ];
  };
}