aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/dash/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/dash/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/dash/default.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/dash/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/dash/default.nix
new file mode 100644
index 000000000000..f6f00553d930
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/dash/default.nix
@@ -0,0 +1,60 @@
+{ 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.17.0";
+
+ src = fetchFromGitHub {
+ owner = "plotly";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "1fbnhpmkxavv6yirmhx7659q1y9bqynwjd1g6cscv1mfv9m59l60";
+ };
+
+ 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,import,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 ];
+ };
+}