about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/dash/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/dash/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/dash/default.nix25
1 files changed, 10 insertions, 15 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/dash/default.nix b/nixpkgs/pkgs/development/python-modules/dash/default.nix
index 807a08de67ec..3fd9d2a41d58 100644
--- a/nixpkgs/pkgs/development/python-modules/dash/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/dash/default.nix
@@ -4,53 +4,48 @@
 , plotly
 , flask
 , flask-compress
-, future
 , dash-core-components
-, dash-renderer
 , dash-html-components
 , dash-table
-, pytest
 , pytest-mock
 , mock
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "dash";
-  version = "1.21.0";
+  version = "2.0.0";
 
   src = fetchFromGitHub {
     owner = "plotly";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-X2yRlW6aXgRgKgRxLNBUHjkjMaw7K4iydzpWLBNt+Y8=";
+    sha256 = "sha256-0RvA5qkwQJGyy81D5kW+IR6LbaD/KBwMy6kYxTETubg=";
   };
 
   propagatedBuildInputs = [
     plotly
     flask
     flask-compress
-    future
     dash-core-components
-    dash-renderer
     dash-html-components
     dash-table
   ];
 
   checkInputs = [
-    pytest
+    pytestCheckHook
     pytest-mock
     mock
   ];
 
-  checkPhase = ''
-    pytest tests/unit/test_{configs,fingerprint,resources}.py \
-      tests/unit/dash/
-  '';
-
-  pythonImportsCheck = [
-    "dash"
+  disabledTestPaths = [
+    "tests/unit/test_browser.py"
+    "tests/unit/test_app_runners.py" # Use selenium
+    "tests/integration"
   ];
 
+  pythonImportsCheck = [ "dash" ];
+
   meta = with lib; {
     description = "Python framework for building analytical web applications";
     homepage = "https://dash.plot.ly/";