python311Packages.dash: 2.13.0 -> 2.14.1
This commit is contained in:
parent
586212ee77
commit
1f053e75de
@ -1,27 +1,43 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, celery
|
||||
, dash-core-components
|
||||
, dash-html-components
|
||||
, dash-table
|
||||
, diskcache
|
||||
, fetchFromGitHub
|
||||
, flask
|
||||
, flask-compress
|
||||
, mock
|
||||
, multiprocess
|
||||
, plotly
|
||||
, psutil
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, fetchFromGitHub
|
||||
|
||||
, nodejs
|
||||
, yarn
|
||||
, fixup_yarn_lock
|
||||
, fetchYarnDeps
|
||||
|
||||
, setuptools
|
||||
, flask
|
||||
, werkzeug
|
||||
, plotly
|
||||
, dash-html-components
|
||||
, dash-core-components
|
||||
, dash-table
|
||||
, importlib-metadata
|
||||
, typing-extensions
|
||||
, requests
|
||||
, retrying
|
||||
, ansi2html
|
||||
, nest-asyncio
|
||||
|
||||
, celery
|
||||
, redis
|
||||
, diskcache
|
||||
, multiprocess
|
||||
, psutil
|
||||
, flask-compress
|
||||
|
||||
, pytestCheckHook
|
||||
, pytest-mock
|
||||
, mock
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dash";
|
||||
version = "2.13.0";
|
||||
version = "2.14.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@ -30,16 +46,52 @@ buildPythonPackage rec {
|
||||
owner = "plotly";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-+pTxEPuXtcu+ZekphqXD/k2tQ5werH/1ueGJOxA8pZw=";
|
||||
hash = "sha256-vQOfX9RCIbr5lfUyT2knwrO374/vm7jH+/1+BeqmRjI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
yarn
|
||||
fixup_yarn_lock
|
||||
];
|
||||
|
||||
yarnDeps = fetchYarnDeps {
|
||||
yarnLock = src + "/@plotly/dash-jupyterlab/yarn.lock";
|
||||
hash = "sha256-mkiyrA0jGiP0zbabSjgHFLEUX3f+LZdJ8eARI5QA8CU=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
pushd @plotly/dash-jupyterlab
|
||||
|
||||
export HOME=$(mktemp -d)
|
||||
|
||||
yarn config --offline set yarn-offline-mirror ${yarnDeps}
|
||||
fixup_yarn_lock yarn.lock
|
||||
|
||||
substituteInPlace package.json --replace jlpm yarn
|
||||
yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts
|
||||
patchShebangs .
|
||||
|
||||
# Generates the jupyterlab extension files
|
||||
yarn run build:pack
|
||||
|
||||
popd
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dash-core-components
|
||||
dash-html-components
|
||||
dash-table
|
||||
setuptools # for importing pkg_resources
|
||||
flask
|
||||
flask-compress
|
||||
werkzeug
|
||||
plotly
|
||||
dash-html-components
|
||||
dash-core-components
|
||||
dash-table
|
||||
importlib-metadata
|
||||
typing-extensions
|
||||
requests
|
||||
retrying
|
||||
ansi2html
|
||||
nest-asyncio
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
@ -52,35 +104,31 @@ buildPythonPackage rec {
|
||||
multiprocess
|
||||
psutil
|
||||
];
|
||||
compress = [
|
||||
flask-compress
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
mock
|
||||
pyyaml
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/unit/test_browser.py"
|
||||
"tests/unit/test_app_runners.py" # Use selenium
|
||||
"tests/unit/test_app_runners.py" # Uses selenium
|
||||
"tests/integration"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Failed: DID NOT RAISE <class 'ImportError'>
|
||||
"test_missing_flask_compress_raises"
|
||||
];
|
||||
pythonImportsCheck = [ "dash" ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dash"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python framework for building analytical web applications";
|
||||
homepage = "https://dash.plot.ly/";
|
||||
changelog = "https://github.com/plotly/dash/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ antoinerg ];
|
||||
changelog = "https://github.com/plotly/dash/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ antoinerg tomasajt ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user