python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / jupyter-packaging / default.nix
blob622e923d1c2757a74d3fb8e43bebdffcc733d5a3
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   fetchpatch,
6   deprecation,
7   hatchling,
8   pythonOlder,
9   packaging,
10   pytestCheckHook,
11   pytest-timeout,
12   setuptools,
13   tomlkit,
16 buildPythonPackage rec {
17   pname = "jupyter-packaging";
18   version = "0.12.3";
19   disabled = pythonOlder "3.7";
20   format = "pyproject";
22   src = fetchPypi {
23     pname = "jupyter_packaging";
24     inherit version;
25     hash = "sha256-nZsrY7l//WeovFORwypCG8QVsmSjLJnk2NjdMdqunPQ=";
26   };
28   patches = [
29     (fetchpatch {
30       name = "setuptools-68-test-compatibility.patch";
31       url = "https://github.com/jupyter/jupyter-packaging/commit/e963fb27aa3b58cd70c5ca61ebe68c222d803b7e.patch";
32       hash = "sha256-NlO07wBCutAJ1DgoT+rQFkuC9Y+DyF1YFlTwWpwsJzo=";
33     })
34   ];
36   nativeBuildInputs = [ hatchling ];
38   propagatedBuildInputs = [
39     deprecation
40     packaging
41     setuptools
42     tomlkit
43   ];
45   nativeCheckInputs = [
46     pytestCheckHook
47     pytest-timeout
48   ];
50   pytestFlagsArray = [ "-Wignore::DeprecationWarning" ];
52   preCheck = ''
53     export HOME=$(mktemp -d)
54   '';
56   disabledTests = [
57     # disable tests depending on network connection
58     "test_develop"
59     "test_install"
60     # Avoid unmainted "mocker" fixture library, and calls to dependent "build" module
61     "test_build"
62     "test_npm_build"
63     "test_create_cmdclass"
64     "test_ensure_with_skip_npm"
65   ];
67   pythonImportsCheck = [ "jupyter_packaging" ];
69   meta = with lib; {
70     description = "Jupyter Packaging Utilities";
71     homepage = "https://github.com/jupyter/jupyter-packaging";
72     license = licenses.bsd3;
73   };