1{ lib
2, buildPythonPackage
3, fetchurl
4, isPy3k
5, freetds
6}:
7
8buildPythonPackage rec {
9 pname = "python-sybase";
10 version = "0.40pre2";
11 disabled = isPy3k;
12
13 src = fetchurl {
14 url = "https://sourceforge.net/projects/python-sybase/files/python-sybase/${pname}-${version}/${pname}-${version}.tar.gz";
15 sha256 = "0pm88hyn18dy7ljam4mdx9qqgmgraf2zy2wl02g5vsjl4ncvq90j";
16 };
17
18 propagatedBuildInputs = [ freetds ];
19
20 SYBASE = freetds;
21 setupPyBuildFlags = [ "-DHAVE_FREETDS" "-UWANT_BULKCOPY" ];
22
23 meta = with lib; {
24 description = "The Sybase module provides a Python interface to the Sybase relational database system";
25 homepage = "http://python-sybase.sourceforge.net";
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ veprbl ];
28 platforms = platforms.unix;
29 };
30}