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