git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pyodbc: fix build (#46703)

Build with unixODBC instead of libiodbc, see discussion in https://github.com/mkleehammer/pyodbc/issues/444

commit13c500ae165b3e3f3237667895099d498aef64bd authorxeji <36407913+xeji@users.noreply.github.com> dateSat 15 Sep 2018, 23:13 (8 years ago) parentb1d9e87
1 file changed+4−2
pkgs/development/python-modules/pyodbc/default.nix+4−2
pkgs/development/python-modules/pyodbc/default.nix+4−2
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:
1+{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
22
33buildPythonPackage rec {
44 pname = "pyodbc";
@@ -10,7 +10,9 @@ buildPythonPackage rec {
1010 sha256 = "4326abb737dec36156998d52324921673d30f575e1e0998f0c5edd7de20e61d4";
1111 };
1212
13− buildInputs = [ libiodbc ];
13+ buildInputs = [ unixODBC ];
14+
15+ doCheck = false; # tests require a database server
1416
1517 meta = with stdenv.lib; {
1618 description = "Python ODBC module to connect to almost any database";