ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / jupyter-packaging / default.nix
blob1ee870bfd573568bc24b0323a9304b9619129bca
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , deprecation
5 , hatchling
6 , pythonOlder
7 , packaging
8 , pytestCheckHook
9 , pytest-timeout
10 , setuptools
11 , tomlkit
14 buildPythonPackage rec {
15   pname = "jupyter-packaging";
16   version = "0.12.3";
17   disabled = pythonOlder "3.7";
18   format = "pyproject";
20   src = fetchPypi {
21     pname = "jupyter_packaging";
22     inherit version;
23     sha256 = "sha256-nZsrY7l//WeovFORwypCG8QVsmSjLJnk2NjdMdqunPQ=";
24   };
26   nativeBuildInputs = [
27     hatchling
28   ];
30   propagatedBuildInputs = [
31     deprecation
32     packaging
33     setuptools
34     tomlkit
35   ];
37   checkInputs = [
38     pytestCheckHook
39     pytest-timeout
40   ];
42   preCheck = ''
43     export HOME=$(mktemp -d)
44   '';
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   ];
57   pythonImportsCheck = [ "jupyter_packaging" ];
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   };