depot/third_party/nixpkgs/pkgs/development/python-modules/pyodbc/default.nix
Default email 619d6dcc77 Project import generated by Copybara.
GitOrigin-RevId: 870959c7fb3a42af1863bed9e1756086a74eb649
2021-08-22 09:53:02 +02:00

24 lines
659 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
buildPythonPackage rec {
pname = "pyodbc";
version = "4.0.31";
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
sha256 = "89256e79d23415887cacf0a821f9f94baa5d833080521d456687d5e88c40c226";
};
buildInputs = [ unixODBC ];
doCheck = false; # tests require a database server
meta = with lib; {
description = "Python ODBC module to connect to almost any database";
homepage = "https://github.com/mkleehammer/pyodbc";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}