1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 ipython, 8 ipython-genutils, 9 prettytable, 10 sqlalchemy, 11 sqlparse, 12}: 13buildPythonPackage rec { 14 pname = "ipython-sql"; 15 version = "0.5.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-PbPOf5qV369Dh2+oCxa9u5oE3guhIELKsT6fWW/P/b4="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 ipython 29 ipython-genutils 30 prettytable 31 sqlalchemy 32 sqlparse 33 ]; 34 35 # pypi tarball has no tests 36 doCheck = false; 37 38 pythonImportsCheck = [ "sql" ]; 39 40 meta = with lib; { 41 description = "Introduces a %sql (or %%sql) magic"; 42 homepage = "https://github.com/catherinedevlin/ipython-sql"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ cpcloud ]; 45 }; 46}