1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, plotly
5, flask
6, flask-compress
7, dash-core-components
8, dash-html-components
9, dash-table
10, pytest-mock
11, mock
12, pytestCheckHook
13}:
14
15buildPythonPackage rec {
16 pname = "dash";
17 version = "2.0.0";
18
19 src = fetchFromGitHub {
20 owner = "plotly";
21 repo = pname;
22 rev = "v${version}";
23 sha256 = "sha256-0RvA5qkwQJGyy81D5kW+IR6LbaD/KBwMy6kYxTETubg=";
24 };
25
26 propagatedBuildInputs = [
27 plotly
28 flask
29 flask-compress
30 dash-core-components
31 dash-html-components
32 dash-table
33 ];
34
35 checkInputs = [
36 pytestCheckHook
37 pytest-mock
38 mock
39 ];
40
41 disabledTestPaths = [
42 "tests/unit/test_browser.py"
43 "tests/unit/test_app_runners.py" # Use selenium
44 "tests/integration"
45 ];
46
47 pythonImportsCheck = [ "dash" ];
48
49 meta = with lib; {
50 description = "Python framework for building analytical web applications";
51 homepage = "https://dash.plot.ly/";
52 license = licenses.mit;
53 maintainers = [ maintainers.antoinerg ];
54 };
55}