Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / mkdocs-jupyter / default.nix
bloba83899c6c74c77c76a7b6d877ee41c0936a76dac
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , hatchling
5 , ipykernel
6 , jupytext
7 , mkdocs
8 , mkdocs-material
9 , nbconvert
10 , pygments
11 , pytestCheckHook
12 , pythonOlder
13 , pythonRelaxDepsHook
16 buildPythonPackage rec {
17   pname = "mkdocs-jupyter";
18   version = "0.24.6";
19   format = "pyproject";
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     pname = "mkdocs_jupyter";
25     inherit version;
26     hash = "sha256-ify+ipUjhk1UFt4aYHEWQLa8KXInnSrfRu0ndsLZ/3w=";
27   };
29   postPatch = ''
30     sed -i "/--cov/d" pyproject.toml
31     substituteInPlace src/mkdocs_jupyter/tests/test_base_usage.py \
32       --replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\","
33   '';
35   pythonRelaxDeps = [
36     "nbconvert"
37   ];
39   nativeBuildInputs = [
40     hatchling
41     pythonRelaxDepsHook
42   ];
44   propagatedBuildInputs = [
45     ipykernel
46     jupytext
47     mkdocs
48     mkdocs-material
49     nbconvert
50     pygments
51   ];
53   nativeCheckInputs = [
54     pytestCheckHook
55   ];
57   pythonImportsCheck = [
58     "mkdocs_jupyter"
59   ];
61   meta = with lib; {
62     description = "Use Jupyter Notebook in mkdocs";
63     homepage = "https://github.com/danielfrg/mkdocs-jupyter";
64     changelog = "https://github.com/danielfrg/mkdocs-jupyter/blob/${version}/CHANGELOG.md";
65     license = licenses.asl20;
66     maintainers = with maintainers; [ net-mist ];
67   };