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