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
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
ipykernel,
|
|
ipython,
|
|
ipywidgets,
|
|
nbconvert,
|
|
nbformat,
|
|
sphinx,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter-sphinx";
|
|
version = "0.5.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter";
|
|
repo = "jupyter-sphinx";
|
|
tag = "v${version}";
|
|
hash = "sha256-o/i3WravKZPf7uw2H4SVYfAyaZGf19ZJlkmeHCWcGtE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
propagatedBuildInputs = [
|
|
ipykernel
|
|
ipython
|
|
ipywidgets
|
|
nbconvert
|
|
nbformat
|
|
sphinx
|
|
];
|
|
|
|
pythonImportsCheck = [ "jupyter_sphinx" ];
|
|
|
|
env.JUPYTER_PLATFORM_DIRS = 1;
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# https://github.com/jupyter/jupyter-sphinx/issues/280"
|
|
"test_builder_priority"
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Jupyter Sphinx Extensions";
|
|
homepage = "https://github.com/jupyter/jupyter-sphinx/";
|
|
changelog = "https://github.com/jupyter/jupyter-sphinx/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|