1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 hatchling, 7 hatch-jupyter-builder, 8 hatch-nodejs-version, 9 jupyterlab, 10 ploomber-core, 11}: 12 13buildPythonPackage rec { 14 pname = "jupysql-plugin"; 15 version = "0.4.5"; 16 17 pyproject = true; 18 disabled = pythonOlder "3.6"; 19 20 # using pypi archive which includes pre-built assets 21 src = fetchPypi { 22 pname = "jupysql_plugin"; 23 inherit version; 24 hash = "sha256-cIXheImO4BL00zn101ZDIzKl2qkIDsTNswZOCs54lNY="; 25 }; 26 27 build-system = [ 28 hatchling 29 hatch-jupyter-builder 30 hatch-nodejs-version 31 jupyterlab 32 ]; 33 34 dependencies = [ ploomber-core ]; 35 36 # testing requires a circular dependency over jupysql 37 doCheck = false; 38 39 pythonImportsCheck = [ "jupysql_plugin" ]; 40 41 meta = with lib; { 42 description = "Better SQL in Jupyter"; 43 homepage = "https://github.com/ploomber/jupysql-plugin"; 44 changelog = "https://github.com/ploomber/jupysql-plugin/blob/${version}/CHANGELOG.md"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ euxane ]; 47 }; 48}