1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, plotly
5, flask
6, flask-compress
7, future
8, dash-core-components
9, dash-renderer
10, dash-html-components
11, dash-table
12, pytest
13, pytest-mock
14, mock
15}:
16
17buildPythonPackage rec {
18 pname = "dash";
19 version = "1.8.0";
20
21 src = fetchFromGitHub {
22 owner = "plotly";
23 repo = pname;
24 rev = "v${version}";
25 sha256 = "11skbvjlj93aw1pqx6j56h73sy9r06jwq7z5h64fd1a3d4z2gsvy";
26 };
27
28 propagatedBuildInputs = [
29 plotly
30 flask
31 flask-compress
32 future
33 dash-core-components
34 dash-renderer
35 dash-html-components
36 dash-table
37 ];
38
39 checkInputs = [
40 pytest
41 pytest-mock
42 mock
43 ];
44
45 checkPhase = ''
46 pytest tests/unit/test_configs.py
47 pytest tests/unit/test_fingerprint.py
48 pytest tests/unit/test_import.py
49 pytest tests/unit/test_resources.py
50 pytest tests/unit/dash/
51 '';
52
53 pythonImportsCheck = [
54 "dash"
55 ];
56
57 meta = with lib; {
58 description = "Python framework for building analytical web applications";
59 homepage = https://dash.plot.ly/;
60 license = licenses.mit;
61 maintainers = [ maintainers.antoinerg ];
62 };
63}