Files
nixpkgs/pkgs/development/python-modules/jupysql-plugin/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
hatchling,
hatch-jupyter-builder,
hatch-nodejs-version,
jupyterlab,
ploomber-core,
}:
buildPythonPackage rec {
pname = "jupysql-plugin";
version = "0.4.5";
pyproject = true;
disabled = pythonOlder "3.6";
# using pypi archive which includes pre-built assets
src = fetchPypi {
pname = "jupysql_plugin";
inherit 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/${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ euxane ];
};
}