about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jupyter-packaging/default.nix
blob: fdc28f08ef4b9828c8d2a6feb6eef615f6ce4756 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, packaging
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "jupyter-packaging";
  version = "0.7.12";
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-sUAyV3GIGn33t/LRSZe2GQY/51rnVrkCWFLkNGAAu7g=";
  };

  propagatedBuildInputs = [ packaging ];

  checkInputs = [ pytestCheckHook ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  # disable tests depending on network connection
  disabledTests = [ "test_develop" "test_install" ];

  pythonImportsCheck = [ "jupyter_packaging" ];

  meta = with lib; {
    description = "Jupyter Packaging Utilities";
    homepage = "https://github.com/jupyter/jupyter-packaging";
    license = licenses.bsd3;
    maintainers = [ maintainers.elohmeier ];
  };
}