depot/third_party/nixpkgs/pkgs/development/python-modules/pyodbc/default.nix

25 lines
659 B
Nix
Raw Normal View History

{ 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 ];
};
}