2020-01-17 18:26:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, plotly
|
|
|
|
, flask
|
|
|
|
, flask-compress
|
|
|
|
, future
|
|
|
|
, dash-core-components
|
|
|
|
, dash-renderer
|
|
|
|
, dash-html-components
|
|
|
|
, dash-table
|
|
|
|
, pytest
|
|
|
|
, pytest-mock
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dash";
|
2020-05-14 16:08:31 +01:00
|
|
|
version = "1.12.0";
|
2020-01-17 18:26:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plotly";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-14 16:08:31 +01:00
|
|
|
sha256 = "0nr5ppjbfmay0d3bah26i4k8xj6xyp24gq0cqlv9lzdrbdd3j9wy";
|
2020-01-17 18:26:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
plotly
|
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
future
|
|
|
|
dash-core-components
|
|
|
|
dash-renderer
|
|
|
|
dash-html-components
|
|
|
|
dash-table
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-mock
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-03-02 07:26:41 +00:00
|
|
|
pytest tests/unit/test_{configs,fingerprint,import,resources}.py \
|
|
|
|
tests/unit/dash/
|
2020-01-17 18:26:11 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dash"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python framework for building analytical web applications";
|
2020-03-02 07:26:41 +00:00
|
|
|
homepage = "https://dash.plot.ly/";
|
2020-01-17 21:57:32 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.antoinerg ];
|
2020-01-17 18:26:11 +00:00
|
|
|
};
|
|
|
|
}
|