summary refs log tree commit diff
path: root/pkgs/development/python-modules/sybase/default.nix
blob: 7821c7b3d7437d35d71e6bae2cbecc9c56fa38f6 (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
24
25
26
27
28
29
30
{ stdenv
, buildPythonPackage
, fetchurl
, isPy3k
, freetds
}:

buildPythonPackage rec {
  pname = "python-sybase";
  version = "0.40pre2";
  disabled = isPy3k;

  src = fetchurl {
    url = "https://sourceforge.net/projects/python-sybase/files/python-sybase/${pname}-${version}/${pname}-${version}.tar.gz";
    sha256 = "0pm88hyn18dy7ljam4mdx9qqgmgraf2zy2wl02g5vsjl4ncvq90j";
  };

  propagatedBuildInputs = [ freetds ];

  SYBASE = freetds;
  setupPyBuildFlags = [ "-DHAVE_FREETDS" "-UWANT_BULKCOPY" ];

  meta = with stdenv.lib; {
    description = "The Sybase module provides a Python interface to the Sybase relational database system";
    homepage    = http://python-sybase.sourceforge.net;
    license     = licenses.bsd3;
    maintainers = with maintainers; [ veprbl ];
    platforms   = platforms.unix;
  };
}