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.14.0";
20
21 src = fetchFromGitHub {
22 owner = "plotly";
23 repo = pname;
24 rev = "v${version}";
25 sha256 = "1f7gal9x0bjsmwxlbvlkwfwz1cyyg5d0n6jh4399wkjilpd966d5";
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,fingerprint,import,resources}.py \
47 tests/unit/dash/
48 '';
49
50 pythonImportsCheck = [
51 "dash"
52 ];
53
54 meta = with lib; {
55 description = "Python framework for building analytical web applications";
56 homepage = "https://dash.plot.ly/";
57 license = licenses.mit;
58 maintainers = [ maintainers.antoinerg ];
59 };
60}