nixpkgs/pkgs/development/python-modules/dash/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
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 09:21:21 +00:00
, pytestCheckHook
, pythonOlder
2020-01-17 18:26:11 +00:00
}:
buildPythonPackage rec {
pname = "dash";
2022-03-30 07:55:04 +00:00
version = "2.3.1";
format = "setuptools";
disabled = pythonOlder "3.6";
2020-01-17 18:26:11 +00:00
src = fetchFromGitHub {
owner = "plotly";
repo = pname;
rev = "v${version}";
2022-03-30 07:55:04 +00:00
sha256 = "sha256-gsP/WbALUkO3AB0uuX/ByhzaeIDSUUE1Cb8Cnh4GEh0=";
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 09:21:21 +00:00
pytestCheckHook
2020-01-17 18:26:11 +00:00
pytest-mock
mock
];
2021-10-20 09:21:21 +00: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 09:21:21 +00: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
};
}