2022-06-16 17:23:12 +00:00
{ stdenv
, lib
2020-04-24 23:36:52 +00:00
, buildPythonPackage
, fetchPypi
2022-08-12 12:06:08 +00:00
, hatchling
2020-04-24 23:36:52 +00:00
, jsonschema
, pythonOlder
, requests
2021-03-23 19:22:30 +00:00
, pytestCheckHook
2020-04-24 23:36:52 +00:00
, pyjson5
2022-05-18 14:49:53 +00:00
, babel
2021-03-23 19:22:30 +00:00
, jupyter_server
2021-06-28 23:13:55 +00:00
, openapi-core
2022-08-12 12:06:08 +00:00
, pytest-timeout
2021-03-23 19:22:30 +00:00
, pytest-tornasync
2021-06-28 23:13:55 +00:00
, ruamel-yaml
2021-03-23 19:22:30 +00:00
, strict-rfc3339
2020-04-24 23:36:52 +00:00
} :
buildPythonPackage rec {
pname = " j u p y t e r l a b _ s e r v e r " ;
2022-08-12 12:06:08 +00:00
version = " 2 . 1 5 . 0 " ;
format = " p y p r o j e c t " ;
2021-06-28 23:13:55 +00:00
disabled = pythonOlder " 3 . 6 " ;
2020-04-24 23:36:52 +00:00
src = fetchPypi {
inherit pname version ;
2022-08-12 12:06:08 +00:00
sha256 = " s h a 2 5 6 - q R x R X g 5 5 c a j 3 w 8 m D S 3 S I V / f a x Q L 5 N g S / K D m H m R / Z h + 8 = " ;
2020-04-24 23:36:52 +00:00
} ;
2021-06-28 23:13:55 +00:00
postPatch = ''
2022-04-27 09:35:20 +00:00
substituteInPlace pyproject . toml \
- - replace " - - c o v j u p y t e r l a b _ s e r v e r - - c o v - r e p o r t t e r m - m i s s i n g - - c o v - r e p o r t t e r m : s k i p - c o v e r e d " " "
# translation tests try to install additional packages into read only paths
rm - r tests/translations /
2021-06-28 23:13:55 +00:00
'' ;
2022-08-12 12:06:08 +00:00
nativeBuildInputs = [
hatchling
] ;
2022-05-18 14:49:53 +00:00
propagatedBuildInputs = [ requests jsonschema pyjson5 babel jupyter_server ] ;
2020-04-24 23:36:52 +00:00
2021-03-23 19:22:30 +00:00
checkInputs = [
2021-06-28 23:13:55 +00:00
openapi-core
2021-03-23 19:22:30 +00:00
pytestCheckHook
2022-08-12 12:06:08 +00:00
pytest-timeout
2021-03-23 19:22:30 +00:00
pytest-tornasync
2021-06-28 23:13:55 +00:00
ruamel-yaml
2021-03-23 19:22:30 +00:00
] ;
2020-04-24 23:36:52 +00:00
2022-07-14 12:49:19 +00:00
preCheck = ''
export HOME = $ ( mktemp - d )
'' ;
2022-08-12 12:06:08 +00:00
pytestFlagsArray = [
# DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
" - W i g n o r e : : D e p r e c a t i o n W a r n i n g "
] ;
2021-05-28 09:39:13 +00:00
__darwinAllowLocalNetworking = true ;
2021-01-15 22:18:51 +00:00
meta = with lib ; {
2020-04-24 23:36:52 +00:00
description = " J u p y t e r L a b S e r v e r " ;
homepage = " h t t p s : / / j u p y t e r . o r g " ;
license = licenses . bsdOriginal ;
maintainers = [ maintainers . costrouc ] ;
} ;
}