From 7f36ea08c663a914dafc39ff62bcdad2b5a541f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20F=C3=B8llesdal?= Date: Wed, 20 Oct 2021 11:21:21 +0200 Subject: [PATCH] python3Packges.dash: 1.21.0 -> 2.0.0 --- .../python-modules/dash/default.nix | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/dash/default.nix b/pkgs/development/python-modules/dash/default.nix index 807a08de67ec..7a8b71346353 100644 --- a/pkgs/development/python-modules/dash/default.nix +++ b/pkgs/development/python-modules/dash/default.nix @@ -9,48 +9,45 @@ , 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/";