My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/jupyterlab_server/default.nix

51 lines
957 B

{ lib
, buildPythonPackage
, fetchPypi
, jsonschema
, pythonOlder
, requests
, pytestCheckHook
, pyjson5
, Babel
, jupyter_server
, openapi-core
, pytest-tornasync
, ruamel-yaml
, strict-rfc3339
}:
buildPythonPackage rec {
pname = "jupyterlab_server";
version = "2.12.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-AOD0tMOZ9Vk4Mj6hDPktkVKI/hJ1PjXRBp9soItyq78=";
};
postPatch = ''
sed -i "/^addopts/d" pyproject.toml
'';
propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ];
checkInputs = [
openapi-core
pytestCheckHook
pytest-tornasync
ruamel-yaml
];
pytestFlagsArray = [ "--pyargs" "jupyterlab_server" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "JupyterLab Server";
homepage = "https://jupyter.org";
license = licenses.bsdOriginal;
maintainers = [ maintainers.costrouc ];
};
}