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
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flit-core,
|
|
importlib-metadata,
|
|
ipython,
|
|
jupyter-cache,
|
|
nbclient,
|
|
myst-parser,
|
|
nbformat,
|
|
pyyaml,
|
|
sphinx,
|
|
sphinx-togglebutton,
|
|
typing-extensions,
|
|
ipykernel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "myst-nb";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "myst_nb";
|
|
hash = "sha256-3zzUaA9Rpa9nP9RrOLVivjVZrvFHXpBu0PLmbkWHzks=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
importlib-metadata
|
|
ipython
|
|
jupyter-cache
|
|
nbclient
|
|
myst-parser
|
|
nbformat
|
|
pyyaml
|
|
sphinx
|
|
sphinx-togglebutton
|
|
typing-extensions
|
|
ipykernel
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"myst_nb"
|
|
"myst_nb.sphinx_ext"
|
|
];
|
|
|
|
meta = {
|
|
description = "Jupyter Notebook Sphinx reader built on top of the MyST markdown parser";
|
|
homepage = "https://github.com/executablebooks/MyST-NB";
|
|
changelog = "https://github.com/executablebooks/MyST-NB/raw/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|