1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
47 lines
997 B
Nix
47 lines
997 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
hatch-jupyter-builder,
|
|
hatch-nodejs-version,
|
|
jupyterlab,
|
|
ploomber-core,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupysql-plugin";
|
|
version = "0.4.5";
|
|
|
|
pyproject = true;
|
|
|
|
# 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 ];
|
|
};
|
|
}
|