Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jupyter-sphinx / default.nix
blob9fb30b5e143eed73955493416a07d1bbd753dd67
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatchling
5 , ipykernel
6 , ipython
7 , ipywidgets
8 , nbconvert
9 , nbformat
10 , pythonOlder
11 , sphinx
12 , pytestCheckHook
15 buildPythonPackage rec {
16   pname = "jupyter-sphinx";
17   version = "0.5.3";
18   pyproject = true;
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "jupyter";
24     repo = "jupyter-sphinx";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-o/i3WravKZPf7uw2H4SVYfAyaZGf19ZJlkmeHCWcGtE=";
27   };
29   nativeBuildInputs = [
30     hatchling
31   ];
33   propagatedBuildInputs = [
34     ipykernel
35     ipython
36     ipywidgets
37     nbconvert
38     nbformat
39     sphinx
40   ];
42   pythonImportsCheck = [
43     "jupyter_sphinx"
44   ];
46   env.JUPYTER_PLATFORM_DIRS = 1;
48   nativeCheckInputs = [
49     pytestCheckHook
50   ];
52   preCheck = ''
53     export HOME=$TMPDIR
54   '';
56   __darwinAllowLocalNetworking = true;
58   meta = with lib; {
59     description = "Jupyter Sphinx Extensions";
60     homepage = "https://github.com/jupyter/jupyter-sphinx/";
61     changelog = "https://github.com/jupyter/jupyter-sphinx/releases/tag/${src.rev}";
62     license = licenses.bsd3;
63   };