nixpkgs/pkgs/development/python-modules/pyodbc/default.nix
2019-12-30 16:46:54 +01:00

25 lines
669 B
Nix

{ 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 ];
};
}