Files
nixpkgs/pkgs/development/python-modules/jupyter-server-fileid/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

57 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
hatchling,
jupyter-events,
jupyter-server,
pytest-jupyter,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jupyter-server-fileid";
version = "0.9.2";
disables = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "jupyter-server";
repo = "jupyter_server_fileid";
rev = "refs/tags/v${version}";
hash = "sha256-ApCDBVjJqpkC5FGEjU/LxwWBunTkL6i5Ki85M6MMLE0=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
jupyter-events
jupyter-server
];
pythonImportsCheck = [ "jupyter_server_fileid" ];
checkInputs = [
pytest-jupyter
pytestCheckHook
];
preCheck = ''
export HOME=$TEMPDIR
'';
__darwinAllowLocalNetworking = true;
meta = {
changelog = "https://github.com/jupyter-server/jupyter_server_fileid/blob/${src.rev}/CHANGELOG.md";
description = "Extension that maintains file IDs for documents in a running Jupyter Server";
mainProgram = "jupyter-fileid";
homepage = "https://github.com/jupyter-server/jupyter_server_fileid";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ dotlambda ];
};
}