mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
61 lines
1 KiB
Nix
61 lines
1 KiB
Nix
{ 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";
|
|
version = "1.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plotly";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-X2yRlW6aXgRgKgRxLNBUHjkjMaw7K4iydzpWLBNt+Y8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
plotly
|
|
flask
|
|
flask-compress
|
|
future
|
|
dash-core-components
|
|
dash-renderer
|
|
dash-html-components
|
|
dash-table
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytest-mock
|
|
mock
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest tests/unit/test_{configs,fingerprint,resources}.py \
|
|
tests/unit/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 ];
|
|
};
|
|
}
|