about summary refs log tree commit diff
path: root/pkgs/applications/science/machine-learning/streamlit/default.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-11-11 12:09:26 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2019-11-11 12:09:26 +0100
commit73b88e17dda6eb6546e0fdcefeb3251f806d88d3 (patch)
tree4ec0603851ec82737ccbc387fe1db1bb63a572fa /pkgs/applications/science/machine-learning/streamlit/default.nix
parent539e94030c226562433e5ff96299dffb0641427a (diff)
parentcf27abf534930ecb1657c4a4e7466ed15c4a2076 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/applications/science/machine-learning/streamlit/default.nix')
-rw-r--r--pkgs/applications/science/machine-learning/streamlit/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/science/machine-learning/streamlit/default.nix b/pkgs/applications/science/machine-learning/streamlit/default.nix
new file mode 100644
index 0000000000000..f3d142739b8f9
--- /dev/null
+++ b/pkgs/applications/science/machine-learning/streamlit/default.nix
@@ -0,0 +1,34 @@
+{   lib, buildPythonApplication, fetchPypi
+  , altair, astor, base58, blinker, boto3, botocore, click, enum-compat
+  , future, pillow, protobuf, requests, toml, tornado, tzlocal, validators, watchdog
+  , jinja2, setuptools
+}:
+
+buildPythonApplication rec {
+  pname = "streamlit";
+  version = "0.49.0";
+  format = "wheel"; # the only distribution available
+
+  src = fetchPypi {
+    inherit pname version format;
+    sha256 = "1g12z93yh85vcgf3g9banshllr5fhz8i4f9llymcnk6mafvcsiv7";
+  };
+
+  propagatedBuildInputs = [
+    altair astor base58 blinker boto3 botocore click enum-compat
+    future pillow protobuf requests toml tornado tzlocal validators watchdog
+    jinja2 setuptools
+  ];
+
+  postInstall = ''
+      rm $out/bin/streamlit.cmd # remove windows helper
+  '';
+
+  meta = with lib; {
+    homepage = https://streamlit.io/;
+    description = "The fastest way to build custom ML tools";
+    maintainers = with maintainers; [ yrashk ];
+    license = licenses.asl20;
+  };
+
+}