2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hatchling
|
|
|
|
, jupyter-events
|
|
|
|
, jupyter-server
|
|
|
|
, pytest-jupyter
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-server-fileid";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.9.2";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
disables = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyter-server";
|
|
|
|
repo = "jupyter_server_fileid";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-ApCDBVjJqpkC5FGEjU/LxwWBunTkL6i5Ki85M6MMLE0=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyter-events
|
|
|
|
jupyter-server
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "jupyter_server_fileid" ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-jupyter
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMPDIR
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/jupyter-server/jupyter_server_fileid/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
description = "An extension that maintains file IDs for documents in a running Jupyter Server";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jupyter-fileid";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/jupyter-server/jupyter_server_fileid";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|