1{ lib, buildPythonPackage, fetchPypi, freetds, cython, setuptools-git }:
2
3buildPythonPackage rec {
4 pname = "pymssql";
5 version = "2.1.4";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1yvs3azd8dkf40lybr9wvswvf4hbxn5ys9ypansmbbb328dyn09j";
10 };
11
12 buildInputs = [cython setuptools-git];
13 propagatedBuildInputs = [freetds];
14
15 # The tests require a running instance of SQLServer, so we skip them
16 doCheck = false;
17
18 meta = with lib; {
19 homepage = http://pymssql.org/en/stable/;
20 description = "A simple database interface for Python that builds on top
21 of FreeTDS to provide a Python DB-API (PEP-249) interface to Microsoft
22 SQL Server";
23 license = licenses.lgpl21;
24 maintainers = with maintainers; [ mredaelli ];
25 };
26}