summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyodbc/default.nix
blob: d8d61c56c35768b4401318f84399710a4e9d039b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:

buildPythonPackage rec {
  pname = "pyodbc";
  version = "4.0.23";
  name = "${pname}-${version}";
  disabled = isPyPy;  # use pypypdbc instead

  src = fetchPypi {
    inherit pname version;
    sha256 = "bb33d032c1f25781db64e2e4fecf77047fab2ddde42a6cd9496e3c66fb8e9f66";
  };

  buildInputs = [ libiodbc ];

  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.linux;
    maintainers = with maintainers; [ bjornfor ];
  };
}