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

61 lines
1 KiB
Nix
Raw Normal View History

2020-01-17 19:26:11 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, plotly
, flask
, flask-compress
, future
, dash-core-components
, dash-renderer
, dash-html-components
, dash-table
, pytest
, pytest-mock
, mock
}:
buildPythonPackage rec {
pname = "dash";
2021-08-14 04:07:45 +02:00
version = "1.21.0";
2020-01-17 19:26:11 +01:00
src = fetchFromGitHub {
owner = "plotly";
repo = pname;
rev = "v${version}";
2021-08-14 04:07:45 +02:00
sha256 = "sha256-X2yRlW6aXgRgKgRxLNBUHjkjMaw7K4iydzpWLBNt+Y8=";
2020-01-17 19:26:11 +01:00
};
propagatedBuildInputs = [
plotly
flask
flask-compress
future
dash-core-components
dash-renderer
dash-html-components
dash-table
];
checkInputs = [
pytest
pytest-mock
mock
];
checkPhase = ''
2021-02-05 23:38:14 +01:00
pytest tests/unit/test_{configs,fingerprint,resources}.py \
2020-03-02 08:26:41 +01:00
tests/unit/dash/
2020-01-17 19:26:11 +01:00
'';
pythonImportsCheck = [
"dash"
];
meta = with lib; {
description = "Python framework for building analytical web applications";
2020-03-02 08:26:41 +01:00
homepage = "https://dash.plot.ly/";
license = licenses.mit;
maintainers = [ maintainers.antoinerg ];
2020-01-17 19:26:11 +01:00
};
}