depot/third_party/nixpkgs/pkgs/development/python-modules/mkdocs-jupyter/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

50 lines
944 B
Nix

{ buildPythonPackage
, fetchPypi
, ipykernel
, jupytext
, lib
, mkdocs
, mkdocs-material
, nbconvert
, pygments
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "mkdocs-jupyter";
version = "0.22.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-WFzGm+pMufr2iYExl43JqbIlCR7UtghPWrZWUqXhIYU=";
};
postPatch = ''
substituteInPlace mkdocs_jupyter/tests/test_base_usage.py \
--replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\","
'';
propagatedBuildInputs = [
nbconvert
jupytext
mkdocs
mkdocs-material
pygments
ipykernel
];
pythonImportsCheck = [ "mkdocs_jupyter" ];
checkInputs = [
pytest-cov
pytestCheckHook
];
meta = with lib; {
description = "Use Jupyter Notebook in mkdocs";
homepage = "https://github.com/danielfrg/mkdocs-jupyter";
license = licenses.asl20;
maintainers = with maintainers; [ net-mist ];
};
}