13 buildPythonPackage rec {
14 pname = "ipython-sql";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
20 owner = "catherinedevlin";
22 rev = "117764caf099d80100ed4b09fc004b55eed6f121";
23 hash = "sha256-ScQihsvRSnC7VIgy8Tzi1z4x6KIZo0SAeLPvHAVdrfA=";
27 substituteInPlace setup.py --replace 'prettytable<1' prettytable
30 propagatedBuildInputs = [
38 nativeCheckInputs = [ ipython pandas pytest ];
43 # running with ipython is required because the tests use objects available
44 # only inside of ipython, for example the global `get_ipython()` function
45 ipython -c 'import pytest; pytest.main()'
50 pythonImportsCheck = [ "sql" ];
53 description = "Introduces a %sql (or %%sql) magic.";
54 homepage = "https://github.com/catherinedevlin/ipython-sql";
55 license = licenses.mit;
56 maintainers = with maintainers; [ cpcloud ];