3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyodbc/default.nix
2022-07-16 14:44:06 +02:00

27 lines
683 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPyPy, unixODBC }:
buildPythonPackage rec {
pname = "pyodbc";
version = "4.0.34";
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fqeGlTK5a41Smx8I6oV2X5TffkpY6Wiy+NRVNGoD5Fw=";
};
buildInputs = [ unixODBC ];
doCheck = false; # tests require a database server
pythonImportsCheck = [ "pyodbc" ];
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 ];
};
}