python310Packages.dash: add extra dependencies

This commit is contained in:
Fabian Affolter 2022-06-08 10:11:37 +02:00 committed by GitHub
parent 321e60b24b
commit 9dfb840320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,21 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, plotly
, flask
, flask-compress
, celery
, dash-core-components
, dash-html-components
, dash-table
, pytest-mock
, diskcache
, fetchFromGitHub
, flask
, flask-compress
, mock
, pyyaml
, multiprocess
, plotly
, psutil
, pytest-mock
, pytestCheckHook
, pythonOlder
, pyyaml
, redis
}:
buildPythonPackage rec {
@ -25,7 +29,7 @@ buildPythonPackage rec {
owner = "plotly";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-Qh5oOkTxEbxXXDX+g9TDa5DiYBlMpnx0yKsn/XMfMF0=";
hash = "sha256-Qh5oOkTxEbxXXDX+g9TDa5DiYBlMpnx0yKsn/XMfMF0=";
};
propagatedBuildInputs = [
@ -37,6 +41,18 @@ buildPythonPackage rec {
dash-table
];
passthru.optional-dependencies = {
celery = [
celery
redis
];
diskcache = [
diskcache
multiprocess
psutil
];
};
checkInputs = [
pytestCheckHook
pytest-mock
@ -50,12 +66,14 @@ buildPythonPackage rec {
"tests/integration"
];
pythonImportsCheck = [ "dash" ];
pythonImportsCheck = [
"dash"
];
meta = with lib; {
description = "Python framework for building analytical web applications";
homepage = "https://dash.plot.ly/";
license = licenses.mit;
maintainers = [ maintainers.antoinerg ];
maintainers = with maintainers; [ antoinerg ];
};
}