3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dash/default.nix

56 lines
1,014 B
Nix
Raw Normal View History

2020-01-17 18:26:11 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, plotly
, flask
, flask-compress
, dash-core-components
, dash-html-components
, dash-table
, pytest-mock
, mock
2021-10-20 10:21:21 +01:00
, pytestCheckHook
2020-01-17 18:26:11 +00:00
}:
buildPythonPackage rec {
pname = "dash";
2021-10-20 10:21:21 +01:00
version = "2.0.0";
2020-01-17 18:26:11 +00:00
src = fetchFromGitHub {
owner = "plotly";
repo = pname;
rev = "v${version}";
2021-10-20 10:21:21 +01:00
sha256 = "sha256-0RvA5qkwQJGyy81D5kW+IR6LbaD/KBwMy6kYxTETubg=";
2020-01-17 18:26:11 +00:00
};
propagatedBuildInputs = [
plotly
flask
flask-compress
dash-core-components
dash-html-components
dash-table
];
checkInputs = [
2021-10-20 10:21:21 +01:00
pytestCheckHook
2020-01-17 18:26:11 +00:00
pytest-mock
mock
];
2021-10-20 10:21:21 +01:00
disabledTestPaths = [
"tests/unit/test_browser.py"
"tests/unit/test_app_runners.py" # Use selenium
"tests/integration"
2020-01-17 18:26:11 +00:00
];
2021-10-20 10:21:21 +01:00
pythonImportsCheck = [ "dash" ];
2020-01-17 18:26:11 +00:00
meta = with lib; {
description = "Python framework for building analytical web applications";
2020-03-02 07:26:41 +00:00
homepage = "https://dash.plot.ly/";
license = licenses.mit;
maintainers = [ maintainers.antoinerg ];
2020-01-17 18:26:11 +00:00
};
}