c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
80 lines
1.3 KiB
Nix
80 lines
1.3 KiB
Nix
{ 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
|
|
, redis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dash";
|
|
version = "2.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plotly";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pZax5qkQ73SVhIKVR+q6xAm6hp+v7jSu6b9HBk5Rr8w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
plotly
|
|
flask
|
|
flask-compress
|
|
dash-core-components
|
|
dash-html-components
|
|
dash-table
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
celery = [
|
|
celery
|
|
redis
|
|
];
|
|
diskcache = [
|
|
diskcache
|
|
multiprocess
|
|
psutil
|
|
];
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
mock
|
|
pyyaml
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"tests/unit/test_browser.py"
|
|
"tests/unit/test_app_runners.py" # Use selenium
|
|
"tests/integration"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dash"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python framework for building analytical web applications";
|
|
homepage = "https://dash.plot.ly/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ antoinerg ];
|
|
};
|
|
}
|