Files
2026-04-20 00:28:40 +02:00

47 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
hatch-jupyter-builder,
hatch-nodejs-version,
jupyterlab,
ploomber-core,
}:
buildPythonPackage (finalAttrs: {
pname = "jupysql-plugin";
version = "0.4.5";
pyproject = true;
# using pypi archive which includes pre-built assets
src = fetchPypi {
pname = "jupysql_plugin";
inherit (finalAttrs) version;
hash = "sha256-cIXheImO4BL00zn101ZDIzKl2qkIDsTNswZOCs54lNY=";
};
build-system = [
hatchling
hatch-jupyter-builder
hatch-nodejs-version
jupyterlab
];
dependencies = [ ploomber-core ];
# testing requires a circular dependency over jupysql
doCheck = false;
pythonImportsCheck = [ "jupysql_plugin" ];
meta = {
description = "Better SQL in Jupyter";
homepage = "https://github.com/ploomber/jupysql-plugin";
changelog = "https://github.com/ploomber/jupysql-plugin/blob/${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ euxane ];
};
})