8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, plotly
|
|
, flask
|
|
, flask-compress
|
|
, dash-core-components
|
|
, dash-html-components
|
|
, dash-table
|
|
, pytest-mock
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dash";
|
|
version = "2.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plotly";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-iH56c2PO1G/NlLmYC+6sdAMZ+kXvUkpkqxfnl9EmDsQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
plotly
|
|
flask
|
|
flask-compress
|
|
dash-core-components
|
|
dash-html-components
|
|
dash-table
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
mock
|
|
];
|
|
|
|
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/";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.antoinerg ];
|
|
};
|
|
}
|