Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.4 kB · 134 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub
, setuptools, nodejs, yarn, prefetch-yarn-deps, fetchYarnDeps
, 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.14.2"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "plotly"; repo = "dash"; rev = "v${version}"; hash = "sha256-EFEsFgd3VbzlIUiz1fBIsKHywgWrL74taDFx0yIM/Ks="; };
nativeBuildInputs = [ setuptools nodejs yarn prefetch-yarn-deps ];
yarnOfflineCache = 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 ${yarnOfflineCache} fixup-yarn-lock yarn.lock
substituteInPlace package.json --replace jlpm yarn yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts patchShebangs node_modules
# Generates the jupyterlab extension files yarn run build:pack
popd '';
propagatedBuildInputs = [ flask werkzeug plotly dash-html-components dash-core-components dash-table importlib-metadata typing-extensions requests retrying ansi2html nest-asyncio ];
passthru.optional-dependencies = { celery = [ celery redis ]; diskcache = [ diskcache multiprocess psutil ]; compress = [ flask-compress ]; };
nativeCheckInputs = [ pytestCheckHook pytest-mock mock pyyaml ];
disabledTestPaths = [ "tests/unit/test_browser.py" "tests/unit/test_app_runners.py" # Uses selenium "tests/integration" ];
pythonImportsCheck = [ "dash" ];
meta = { changelog = "https://github.com/plotly/dash/blob/${src.rev}/CHANGELOG.md"; description = "Python framework for building analytical web applications"; homepage = "https://dash.plot.ly/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ antoinerg tomasajt ]; };}