Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jupyter-server-fileid / default.nix
blob4ef40134152dca0a9977097f77ef57663a44289d
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , hatchling
6 , jupyter-events
7 , jupyter-server
8 , pytest-jupyter
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "jupyter-server-fileid";
14   version = "0.9.0";
16   disables = pythonOlder "3.7";
18   format = "pyproject";
20   src = fetchFromGitHub {
21     owner = "jupyter-server";
22     repo = "jupyter_server_fileid";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-3dwj8GV0FmbhSsC2uWOLcU5ofrvBBGJ/2F/noFh4RCU=";
25   };
27   nativeBuildInputs = [
28     hatchling
29   ];
31   propagatedBuildInputs = [
32     jupyter-events
33     jupyter-server
34   ];
36   pythonImportsCheck = [ "jupyter_server_fileid" ];
38   checkInputs = [
39     pytest-jupyter
40     pytestCheckHook
41   ];
43   preCheck = ''
44     export HOME=$TEMPDIR
45   '';
47   meta = {
48     changelog = "https://github.com/jupyter-server/jupyter_server_fileid/blob/${src.rev}/CHANGELOG.md";
49     description = "An extension that maintains file IDs for documents in a running Jupyter Server";
50     homepage = "https://github.com/jupyter-server/jupyter_server_fileid";
51     license = lib.licenses.bsd3;
52     maintainers = with lib.maintainers; [ dotlambda ];
53   };