c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
26 lines
683 B
Nix
26 lines
683 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyodbc";
|
|
version = "4.0.34";
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-fqeGlTK5a41Smx8I6oV2X5TffkpY6Wiy+NRVNGoD5Fw=";
|
|
};
|
|
|
|
buildInputs = [ unixODBC ];
|
|
|
|
doCheck = false; # tests require a database server
|
|
|
|
pythonImportsCheck = [ "pyodbc" ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|