Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 24 lines 657 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }: 2 3buildPythonPackage rec { 4 pname = "pyodbc"; 5 version = "4.0.27"; 6 disabled = isPyPy; # use pypypdbc instead 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "1kd2i7hc1330cli72vawzby17c3039cqn1aba4i0zrjnpghjhmib"; 11 }; 12 13 buildInputs = [ unixODBC ]; 14 15 doCheck = false; # tests require a database server 16 17 meta = with stdenv.lib; { 18 description = "Python ODBC module to connect to almost any database"; 19 homepage = "https://github.com/mkleehammer/pyodbc"; 20 license = licenses.mit; 21 platforms = platforms.unix; 22 maintainers = with maintainers; [ bjornfor ]; 23 }; 24}