2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
|
2017-10-29 10:45:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyodbc";
|
2020-02-21 07:11:36 +00:00
|
|
|
version = "4.0.30";
|
2017-10-29 10:45:46 +00:00
|
|
|
disabled = isPyPy; # use pypypdbc instead
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-21 07:11:36 +00:00
|
|
|
sha256 = "0skjpraar6hcwsy82612bpj8nw016ncyvvq88j5syrikxgp5saw5";
|
2017-10-29 10:45:46 +00:00
|
|
|
};
|
|
|
|
|
2018-09-15 22:13:51 +01:00
|
|
|
buildInputs = [ unixODBC ];
|
|
|
|
|
|
|
|
doCheck = false; # tests require a database server
|
2017-10-29 10:45:46 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-29 10:45:46 +00:00
|
|
|
description = "Python ODBC module to connect to almost any database";
|
|
|
|
homepage = "https://github.com/mkleehammer/pyodbc";
|
|
|
|
license = licenses.mit;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-10-29 10:45:46 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|