nixpkgs-suyu/pkgs/development/python-modules/pyodbc/default.nix

25 lines
669 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
buildPythonPackage rec {
pname = "pyodbc";
2019-12-29 10:28:08 +01:00
version = "4.0.28";
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
2019-12-29 10:28:08 +01:00
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 ];
};
}