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
74 lines
1.3 KiB
Nix
74 lines
1.3 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
ipykernel,
|
|
ipywidgets,
|
|
jupyter-client,
|
|
jupyter-core,
|
|
lib,
|
|
nbconvert,
|
|
nbformat,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
testpath,
|
|
traitlets,
|
|
xmltodict,
|
|
}:
|
|
|
|
let
|
|
nbclient = buildPythonPackage rec {
|
|
pname = "nbclient";
|
|
version = "0.10.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter";
|
|
repo = "nbclient";
|
|
tag = "v${version}";
|
|
hash = "sha256-+qSed6yy4YVZ25GigNTap+kMaoDiMYSJO85wurbzeDs=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
jupyter-client
|
|
jupyter-core
|
|
nbformat
|
|
traitlets
|
|
];
|
|
|
|
# circular dependencies if enabled by default
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = [
|
|
ipykernel
|
|
ipywidgets
|
|
nbconvert
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
testpath
|
|
xmltodict
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
passthru.tests = {
|
|
check = nbclient.overridePythonAttrs (_: {
|
|
doCheck = true;
|
|
});
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jupyter/nbclient";
|
|
description = "Client library for executing notebooks";
|
|
mainProgram = "jupyter-execute";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
};
|
|
in
|
|
nbclient
|