2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, plotly
|
|
|
|
, flask
|
|
|
|
, flask-compress
|
|
|
|
, dash-core-components
|
|
|
|
, dash-html-components
|
|
|
|
, dash-table
|
|
|
|
, pytest-mock
|
|
|
|
, mock
|
2021-10-17 09:34:42 +00:00
|
|
|
, pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dash";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.2.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plotly";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-Ul3j1BJd3lKzGCEhPFYxZG0CcAqAZqmOEDi8vGPFItw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
plotly
|
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
dash-core-components
|
|
|
|
dash-html-components
|
|
|
|
dash-table
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-10-17 09:34:42 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-mock
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/unit/test_browser.py"
|
|
|
|
"tests/unit/test_app_runners.py" # Use selenium
|
|
|
|
"tests/integration"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
pythonImportsCheck = [ "dash" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python framework for building analytical web applications";
|
|
|
|
homepage = "https://dash.plot.ly/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.antoinerg ];
|
|
|
|
};
|
|
|
|
}
|