1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 jupyter-core,
6 notebook,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "jupyter-contrib-core";
12 version = "0.4.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "jupyter-contrib";
17 repo = "jupyter_contrib_core";
18 tag = version;
19 hash = "sha256-UTtK+aKxBFkqKuHrt1ox8vdHyFz/9HiKFl7U4UQcG88=";
20 };
21
22 propagatedBuildInputs = [
23 jupyter-core
24 notebook
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 disabledTestPaths = [
30 # This test fails upstream too
31 "tests/test_application.py"
32 ];
33
34 pythonImportsCheck = [ "jupyter_contrib_core" ];
35
36 meta = with lib; {
37 description = "Common utilities for jupyter-contrib projects";
38 mainProgram = "jupyter-contrib";
39 homepage = "https://github.com/jupyter-contrib/jupyter_contrib_core";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ GaetanLepage ];
42 };
43}