Merge pull request #223896 from fabaff/mkdocs-jupyter-fix

python310Packages.mkdocs-jupyter: 0.22.0 -> 0.24.1
This commit is contained in:
Fabian Affolter 2023-03-30 19:45:26 +02:00 committed by GitHub
commit 5077f2b608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,51 +1,67 @@
{ buildPythonPackage { lib
, buildPythonPackage
, fetchPypi , fetchPypi
, hatchling
, ipykernel , ipykernel
, jupytext , jupytext
, lib
, mkdocs , mkdocs
, mkdocs-material , mkdocs-material
, nbconvert , nbconvert
, pygments , pygments
, pytestCheckHook , pytestCheckHook
, pytest-cov , pythonOlder
, pythonRelaxDepsHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mkdocs-jupyter"; pname = "mkdocs-jupyter";
version = "0.22.0"; version = "0.24.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "mkdocs_jupyter";
hash = "sha256-WFzGm+pMufr2iYExl43JqbIlCR7UtghPWrZWUqXhIYU="; inherit version;
hash = "sha256-lncDf7fpMSaPPfdZn8CCjCYSR989FXW87TILqLfR1G0=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py \ sed -i "/--cov/d" pyproject.toml
--replace "nbconvert>=6.2.0,<7.0.0" "nbconvert>=6.2.0"
substituteInPlace mkdocs_jupyter/tests/test_base_usage.py \ substituteInPlace mkdocs_jupyter/tests/test_base_usage.py \
--replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\"," --replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\","
''; '';
pythonRelaxDeps = [
"nbconvert"
];
nativeBuildInputs = [
hatchling
pythonRelaxDepsHook
];
propagatedBuildInputs = [ propagatedBuildInputs = [
nbconvert ipykernel
jupytext jupytext
mkdocs mkdocs
mkdocs-material mkdocs-material
nbconvert
pygments pygments
ipykernel
]; ];
pythonImportsCheck = [ "mkdocs_jupyter" ];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-cov
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [
"mkdocs_jupyter"
];
meta = with lib; { meta = with lib; {
description = "Use Jupyter Notebook in mkdocs"; description = "Use Jupyter Notebook in mkdocs";
homepage = "https://github.com/danielfrg/mkdocs-jupyter"; homepage = "https://github.com/danielfrg/mkdocs-jupyter";
changelog = "https://github.com/danielfrg/mkdocs-jupyter/blob/${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ net-mist ]; maintainers = with maintainers; [ net-mist ];
}; };