Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 40 lines 841 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, pythonOlder 6, unixODBC 7}: 8 9buildPythonPackage rec { 10 pname = "pyodbc"; 11 version = "4.0.35"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7" || isPyPy; # use pypypdbc instead 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-krmvSOi5KEVbyLlL89oFdR+uwJMqEe7iN8GJxtQ55cg="; 19 }; 20 21 buildInputs = [ 22 unixODBC 23 ]; 24 25 # Tests require a database server 26 doCheck = false; 27 28 pythonImportsCheck = [ 29 "pyodbc" 30 ]; 31 32 meta = with lib; { 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 = licenses.mit; 37 platforms = platforms.unix; 38 maintainers = with maintainers; [ bjornfor ]; 39 }; 40}