alvr: 20.11.1 -> 20.12.1 (#374869)
[NixPkgs.git] / pkgs / development / python-modules / jupyter-server-fileid / default.nix
blob7e39775da16149080000c10d716e8f1e93f73296
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   hatchling,
7   jupyter-events,
8   jupyter-server,
9   click,
10   pytest-jupyter,
11   pytestCheckHook,
14 buildPythonPackage rec {
15   pname = "jupyter-server-fileid";
16   version = "0.9.3";
17   pyproject = true;
19   disables = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "jupyter-server";
23     repo = "jupyter_server_fileid";
24     tag = "v${version}";
25     hash = "sha256-ob7hnqU7GdaDHEPF7+gwkmsboKZgiiLzzwxbBUwYHYo=";
26   };
28   build-system = [ hatchling ];
30   dependencies = [
31     jupyter-events
32     jupyter-server
33   ];
35   optional-dependencies = {
36     cli = [ click ];
37   };
39   pythonImportsCheck = [ "jupyter_server_fileid" ];
41   checkInputs = [
42     pytest-jupyter
43     pytestCheckHook
44   ];
46   preCheck = ''
47     export HOME=$TEMPDIR
48   '';
50   __darwinAllowLocalNetworking = true;
52   meta = {
53     changelog = "https://github.com/jupyter-server/jupyter_server_fileid/blob/${src.rev}/CHANGELOG.md";
54     description = "Extension that maintains file IDs for documents in a running Jupyter Server";
55     mainProgram = "jupyter-fileid";
56     homepage = "https://github.com/jupyter-server/jupyter_server_fileid";
57     license = lib.licenses.bsd3;
58     maintainers = with lib.maintainers; [ dotlambda ];
59   };