Merge pull request #118512 from SuperSandro2000/fix-home-assistanta-building

This commit is contained in:
Sandro 2021-04-05 02:07:01 +02:00 committed by GitHub
commit c92ac982e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 2 deletions

View File

@ -7,6 +7,7 @@
, mock
, ipython
, ipykernel
, jupyterlab-widgets
, traitlets
, notebook
, widgetsnbextension
@ -28,6 +29,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
ipython
ipykernel
jupyterlab-widgets
traitlets
notebook
widgetsnbextension

View File

@ -10,13 +10,13 @@
buildPythonPackage rec {
pname = "jupyter-packaging";
version = "0.8.0";
version = "0.8.2";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "jupyter_packaging";
inherit version;
sha256 = "276c9f884286695f6ab57a017f4bb9dd4df4f5e232b783050d2aa55b6b9ed650";
sha256 = "sha256-ddzJDcFyY5Iida4QvpACh0FRBIy95IQHCEF5HQl5QbI=";
};
propagatedBuildInputs = [ deprecation packaging tomlkit ];

View File

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi
, jupyter-packaging
}:
buildPythonPackage rec {
pname = "jupyterlab-widgets";
version = "1.0.0";
src = fetchPypi {
pname = "jupyterlab_widgets";
inherit version;
sha256 = "0y7vhhas3qndiypcpcfnhrj9n92v2w4hdc86nn620s9h9nl2j6jw";
};
nativeBuildInputs = [
jupyter-packaging
];
# has no tests
doCheck = false;
pythonImportsCheck = [ "jupyterlab_widgets" ];
meta = with lib; {
description = "Jupyter Widgets JupyterLab Extension";
homepage = "https://github.com/jupyter-widgets/ipywidgets";
license = licenses.bsd3;
maintainers = with maintainers; [ jonringer SuperSandro2000 ];
};
}

View File

@ -110,6 +110,13 @@ buildPythonPackage rec {
"test_clipboard"
];
disabledTestPaths = [
# some test in this file either crashes python or hangs for hours
# TODO: figure out why and how to fix it
"tests/io/pytables/test_pytables_missing.py"
"tests/io/pytables/test_store.py"
];
# Tests have relative paths, and need to reference compiled C extensions
# so change directory where `import .test` is able to be resolved
preCheck = ''

View File

@ -3414,6 +3414,8 @@ in {
jupyterlab_server = callPackage ../development/python-modules/jupyterlab_server { };
jupyterlab-widgets = callPackage ../development/python-modules/jupyterlab-widgets { };
jupyter-packaging = callPackage ../development/python-modules/jupyter-packaging { };
jupyter-repo2docker = callPackage ../development/python-modules/jupyter-repo2docker {