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
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
ipykernel,
|
|
jupytext,
|
|
mkdocs,
|
|
mkdocs-material,
|
|
nbconvert,
|
|
pygments,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-jupyter";
|
|
version = "0.25.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "mkdocs_jupyter";
|
|
inherit version;
|
|
hash = "sha256-DpJy/0lH4OxoPJJCOkv7QqJkd8EDqxpquCd+LcyPev4=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "nbconvert" ];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
ipykernel
|
|
jupytext
|
|
mkdocs
|
|
mkdocs-material
|
|
nbconvert
|
|
pygments
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
];
|
|
|
|
pythonImportsCheck = [ "mkdocs_jupyter" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Use Jupyter Notebook in mkdocs";
|
|
homepage = "https://github.com/danielfrg/mkdocs-jupyter";
|
|
changelog = "https://github.com/danielfrg/mkdocs-jupyter/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ net-mist ];
|
|
};
|
|
}
|