Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pyodbc / default.nix
blob8f2686a79145ca2d65ede722a2a9f0df962b73a6
1 { lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
3 buildPythonPackage rec {
4   pname = "pyodbc";
5   version = "4.0.30";
6   disabled = isPyPy;  # use pypypdbc instead
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "0skjpraar6hcwsy82612bpj8nw016ncyvvq88j5syrikxgp5saw5";
11   };
13   buildInputs = [ unixODBC ];
15   doCheck = false; # tests require a database server
17   meta = with lib; {
18     description = "Python ODBC module to connect to almost any database";
19     homepage = "https://github.com/mkleehammer/pyodbc";
20     license = licenses.mit;
21     platforms = platforms.unix;
22     maintainers = with maintainers; [ bjornfor ];
23   };