1{ lib
2, buildPythonPackage
3, fetchPypi
4, deprecation
5, pythonOlder
6, packaging
7, pytestCheckHook
8, tomlkit
9}:
10
11buildPythonPackage rec {
12 pname = "jupyter-packaging";
13 version = "0.10.2";
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 pname = "jupyter_packaging";
18 inherit version;
19 sha256 = "sha256-iEX0ht1IwWYM+tGOUJHRwDVA6y6fvzzs8h7LIrabh3A=";
20 };
21
22 propagatedBuildInputs = [ deprecation packaging tomlkit ];
23
24 checkInputs = [ pytestCheckHook ];
25
26 preCheck = ''
27 export HOME=$(mktemp -d)
28 '';
29
30 disabledTests = [
31 # disable tests depending on network connection
32 "test_develop"
33 "test_install"
34 # Avoid unmainted "mocker" fixture library, and calls to dependent "build" module
35 "test_build"
36 "test_npm_build"
37 "test_create_cmdclass"
38 "test_ensure_with_skip_npm"
39 ];
40
41 pythonImportsCheck = [ "jupyter_packaging" ];
42
43 meta = with lib; {
44 description = "Jupyter Packaging Utilities";
45 homepage = "https://github.com/jupyter/jupyter-packaging";
46 license = licenses.bsd3;
47 maintainers = [ maintainers.elohmeier ];
48 };
49}