Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 24 lines 669 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }: 2 3buildPythonPackage rec { 4 pname = "pyodbc"; 5 version = "4.0.28"; 6 disabled = isPyPy; # use pypypdbc instead 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "510643354c4c687ed96bf7e7cec4d02d6c626ecf3e18696f5a0228dd6d11b769"; 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}