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