evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / python-modules / jupyter-sphinx / default.nix
blob89fc4fe88bf53846f48745b407e3352c9b978a22
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   hatchling,
6   ipykernel,
7   ipython,
8   ipywidgets,
9   nbconvert,
10   nbformat,
11   pythonOlder,
12   sphinx,
13   pytestCheckHook,
16 buildPythonPackage rec {
17   pname = "jupyter-sphinx";
18   version = "0.5.3";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "jupyter";
25     repo = "jupyter-sphinx";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-o/i3WravKZPf7uw2H4SVYfAyaZGf19ZJlkmeHCWcGtE=";
28   };
30   nativeBuildInputs = [ hatchling ];
32   propagatedBuildInputs = [
33     ipykernel
34     ipython
35     ipywidgets
36     nbconvert
37     nbformat
38     sphinx
39   ];
41   pythonImportsCheck = [ "jupyter_sphinx" ];
43   env.JUPYTER_PLATFORM_DIRS = 1;
45   nativeCheckInputs = [ pytestCheckHook ];
47   disabledTests = [
48     # https://github.com/jupyter/jupyter-sphinx/issues/280"
49     "test_builder_priority"
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/${lib.removePrefix "refs/tags/" src.rev}";
62     license = licenses.bsd3;
63   };