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