nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, jsonschema
6, pythonOlder
7, requests
8, pytestCheckHook
9, pyjson5
10, babel
11, jupyter_server
12, openapi-core
13, pytest-tornasync
14, ruamel-yaml
15, strict-rfc3339
16}:
17
18buildPythonPackage rec {
19 pname = "jupyterlab_server";
20 version = "2.12.0";
21 disabled = pythonOlder "3.6";
22
23 src = fetchPypi {
24 inherit pname version;
25 sha256 = "sha256-AOD0tMOZ9Vk4Mj6hDPktkVKI/hJ1PjXRBp9soItyq78=";
26 };
27
28 postPatch = ''
29 substituteInPlace pyproject.toml \
30 --replace "--cov jupyterlab_server --cov-report term-missing --cov-report term:skip-covered" ""
31
32 # translation tests try to install additional packages into read only paths
33 rm -r tests/translations/
34 '';
35
36 propagatedBuildInputs = [ requests jsonschema pyjson5 babel jupyter_server ];
37
38 checkInputs = [
39 openapi-core
40 pytestCheckHook
41 pytest-tornasync
42 ruamel-yaml
43 ];
44
45 __darwinAllowLocalNetworking = true;
46
47 meta = with lib; {
48 broken = stdenv.isDarwin;
49 description = "JupyterLab Server";
50 homepage = "https://jupyter.org";
51 license = licenses.bsdOriginal;
52 maintainers = [ maintainers.costrouc ];
53 };
54}