about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jupyter-contrib-core/default.nix
blob: 7bd1c29eb6ea9560da3311d79a656ff45e9a0b3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, jupyter-core
, notebook
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "jupyter-contrib-core";
  version = "0.4.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "jupyter-contrib";
    repo = "jupyter_contrib_core";
    rev = "refs/tags/${version}";
    hash = "sha256-UTtK+aKxBFkqKuHrt1ox8vdHyFz/9HiKFl7U4UQcG88=";
  };

  propagatedBuildInputs = [
    jupyter-core
    notebook
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    # This test fails upstream too
    "tests/test_application.py"
  ];

  pythonImportsCheck = [ "jupyter_contrib_core" ];

  meta = with lib; {
    description = "Common utilities for jupyter-contrib projects";
    homepage = "https://github.com/jupyter-contrib/jupyter_contrib_core";
    license = licenses.bsd3;
    maintainers = with maintainers; [ GaetanLepage ];
  };
}