nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 863 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPyPy, 6 unixODBC, 7}: 8 9buildPythonPackage rec { 10 pname = "pyodbc"; 11 version = "5.3.0"; 12 format = "setuptools"; 13 14 disabled = isPyPy; # use pypypdbc instead 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-L+DgY9j7Zu/QrG3DkjbE3hpF8Xwz6t7Q1VPSHBmfTQU="; 19 }; 20 21 nativeBuildInputs = [ 22 unixODBC # for odbc_config 23 ]; 24 25 buildInputs = [ unixODBC ]; 26 27 # Tests require a database server 28 doCheck = false; 29 30 pythonImportsCheck = [ "pyodbc" ]; 31 32 meta = { 33 description = "Python ODBC module to connect to almost any database"; 34 homepage = "https://github.com/mkleehammer/pyodbc"; 35 changelog = "https://github.com/mkleehammer/pyodbc/releases/tag/${version}"; 36 license = lib.licenses.mit; 37 platforms = lib.platforms.unix; 38 maintainers = with lib.maintainers; [ bjornfor ]; 39 }; 40}